	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isl6405_set_voltage
_isl6405_set_voltage:                   ## @isl6405_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
	subq	$32, %rsp
	movq	(%rdi), %rax
	movq	%rax, -24(%rbp)
	movq	$4, -16(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -8(%rbp)
	movl	4(%rax), %ecx
	testb	$-128, %cl
	jne	LBB0_5
## %bb.1:
	movq	_ISL6405_VSEL1@GOTPCREL(%rip), %r8
	movq	_ISL6405_EN1@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	orl	(%r8), %edx
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, (%rax)
	cmpl	$128, %esi
	je	LBB0_10
## %bb.2:
	cmpl	$129, %esi
	je	LBB0_9
## %bb.3:
	cmpl	$130, %esi
	je	LBB0_8
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movq	_ISL6405_VSEL2@GOTPCREL(%rip), %r8
	movq	_ISL6405_EN2@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edx
	orl	(%r8), %edx
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, (%rax)
	cmpl	$128, %esi
	je	LBB0_10
## %bb.6:
	cmpl	$129, %esi
	je	LBB0_9
## %bb.7:
	cmpl	$130, %esi
	jne	LBB0_11
LBB0_8:
	orl	(%rdi), %edx
	jmp	LBB0_10
LBB0_9:
	orl	(%rdi), %edx
	orl	(%r8), %edx
LBB0_10:
	orl	%ecx, %edx
	andl	8(%rax), %edx
	movl	%edx, (%rax)
	movl	12(%rax), %edi
	leaq	-24(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	cmpl	$1, %ecx
	cmovel	%edx, %eax
LBB0_12:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ISL6405_VSEL2,4,2              ## @ISL6405_VSEL2
	.comm	_ISL6405_EN2,4,2                ## @ISL6405_EN2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ISL6405_VSEL1,4,2              ## @ISL6405_VSEL1
	.comm	_ISL6405_EN1,4,2                ## @ISL6405_EN1
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_isl6405_set_voltage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function isl6405_set_voltage
lCPI0_0:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_isl6405_set_voltage:                   ; @isl6405_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldr	x8, [x0]
	str	x8, [sp, #8]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
	ldr	w9, [x8, #16]
	str	w9, [sp, #24]
	ldr	w9, [x8, #4]
	tbnz	w9, #7, LBB0_2
; %bb.1:
Lloh2:
	adrp	x12, _ISL6405_VSEL1@GOTPAGE
Lloh3:
	ldr	x12, [x12, _ISL6405_VSEL1@GOTPAGEOFF]
	ldr	w10, [x12]
Lloh4:
	adrp	x11, _ISL6405_EN1@GOTPAGE
Lloh5:
	ldr	x11, [x11, _ISL6405_EN1@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x12, _ISL6405_VSEL2@GOTPAGE
Lloh7:
	ldr	x12, [x12, _ISL6405_VSEL2@GOTPAGEOFF]
	ldr	w10, [x12]
Lloh8:
	adrp	x11, _ISL6405_EN2@GOTPAGE
Lloh9:
	ldr	x11, [x11, _ISL6405_EN2@GOTPAGEOFF]
LBB0_3:
	ldr	w13, [x11]
	orr	w10, w13, w10
	ldr	w13, [x8]
	bic	w10, w13, w10
	str	w10, [x8]
	cmp	w1, #128
	b.eq	LBB0_8
; %bb.4:
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.5:
	cmp	w1, #130
	b.ne	LBB0_9
; %bb.6:
	ldr	w11, [x11]
	orr	w10, w11, w10
	b	LBB0_8
LBB0_7:
	ldr	w11, [x11]
	ldr	w12, [x12]
	orr	w10, w11, w10
	orr	w10, w10, w12
LBB0_8:
	orr	w9, w10, w9
	ldp	w10, w0, [x8, #8]
	and	w9, w10, w9
	str	w9, [x8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w0, #1
	csneg	w0, wzr, w8, eq
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ISL6405_VSEL2,4,2              ; @ISL6405_VSEL2
	.comm	_ISL6405_EN2,4,2                ; @ISL6405_EN2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ISL6405_VSEL1,4,2              ; @ISL6405_VSEL1
	.comm	_ISL6405_EN1,4,2                ; @ISL6405_EN1
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_isl6405_set_voltage
.subsections_via_symbols
