	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds278x_get_status
_ds278x_get_status:                     ## @ds278x_get_status
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	leaq	-24(%rbp), %rsi
	callq	*(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	8(%rbx), %rax
	leaq	-20(%rbp), %rsi
	movq	%rbx, %rdi
	callq	*8(%rax)
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movl	-20(%rbp), %eax
	movl	%eax, (%rbx)
	cmpl	$100, %eax
	jne	LBB0_4
## %bb.3:
	movq	_POWER_SUPPLY_STATUS_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_4:
	cmpl	$0, -24(%rbp)
	je	LBB0_5
## %bb.6:
	jns	LBB0_7
## %bb.8:
	movq	_POWER_SUPPLY_STATUS_DISCHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	movq	_POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_POWER_SUPPLY_STATUS_CHARGING@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ## @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ## @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ## @POWER_SUPPLY_STATUS_CHARGING
	.no_dead_strip	_ds278x_get_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds278x_get_status
_ds278x_get_status:                     ; @ds278x_get_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	add	x1, sp, #12
	blr	x8
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	add	x1, sp, #8
	mov	x0, x20
	blr	x8
	cbnz	w0, LBB0_6
; %bb.2:
	ldr	w8, [sp, #8]
	str	w8, [x20]
	cmp	w8, #100
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_SUPPLY_STATUS_FULL@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _POWER_SUPPLY_STATUS_NOT_CHARGING@GOTPAGEOFF]
Lloh4:
	adrp	x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGE
Lloh5:
	ldr	x10, [x10, _POWER_SUPPLY_STATUS_CHARGING@GOTPAGEOFF]
Lloh6:
	adrp	x11, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGE
Lloh7:
	ldr	x11, [x11, _POWER_SUPPLY_STATUS_DISCHARGING@GOTPAGEOFF]
	cmp	w8, #0
	csel	x10, x11, x10, lt
	cmp	w8, #0
	csel	x8, x9, x10, eq
LBB0_5:
	mov	w0, #0
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_SUPPLY_STATUS_FULL,4,2   ; @POWER_SUPPLY_STATUS_FULL
	.comm	_POWER_SUPPLY_STATUS_NOT_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_NOT_CHARGING
	.comm	_POWER_SUPPLY_STATUS_DISCHARGING,4,2 ; @POWER_SUPPLY_STATUS_DISCHARGING
	.comm	_POWER_SUPPLY_STATUS_CHARGING,4,2 ; @POWER_SUPPLY_STATUS_CHARGING
	.no_dead_strip	_ds278x_get_status
.subsections_via_symbols
