	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a8293_set_voltage
_a8293_set_voltage:                     ## @a8293_set_voltage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %r15
	movq	8(%r15), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$128, %ebx
	jne	LBB0_13
## %bb.3:
	movq	$16, -32(%rbp)
	movl	$16, %eax
	jmp	LBB0_6
LBB0_4:
	movq	$49, -32(%rbp)
	movl	$49, %eax
	jmp	LBB0_6
LBB0_5:
	movq	$56, -32(%rbp)
	movl	$56, %eax
LBB0_6:
	movq	(%r15), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	movq	-32(%rbp), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_9:
	movq	$130, -40(%rbp)
	movq	(%r15), %rax
	cmpq	$130, 8(%rax)
	je	LBB0_12
## %bb.10:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_i2c_master_send
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	-40(%rbp), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
LBB0_12:
	movl	$1500, %edi                     ## imm = 0x5DC
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_usleep_range
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_15:
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fe_sec_voltage=%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_a8293_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a8293_set_voltage
_a8293_set_voltage:                     ; @a8293_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	ldr	x21, [x0]
	ldr	x19, [x21, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	cmp	w20, #130
	b.eq	LBB0_4
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_14
; %bb.3:
	mov	w8, #16
	b	LBB0_6
LBB0_4:
	mov	w8, #49
	b	LBB0_6
LBB0_5:
	mov	w8, #56
LBB0_6:
	str	x8, [sp, #8]
	ldr	x9, [x21]
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.7:
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_13
; %bb.8:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	str	x8, [x9]
LBB0_9:
	mov	w8, #130
	str	x8, [sp]
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	cmp	x8, #130
	b.eq	LBB0_12
; %bb.10:
	mov	x1, sp
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_master_send
	tbnz	w0, #31, LBB0_13
; %bb.11:
	ldr	x8, [sp]
	ldr	x9, [x21]
	str	x8, [x9, #8]
LBB0_12:
	mov	w0, #1500
	mov	w1, #50000
	bl	_usleep_range
	mov	w20, #0
	b	LBB0_16
LBB0_13:
	mov	x20, x0
	b	LBB0_15
LBB0_14:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_15:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_16:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fe_sec_voltage=%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_a8293_set_voltage
.subsections_via_symbols
