	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lnbp21_set_voltage
_lnbp21_set_voltage:                    ## @lnbp21_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)
	movq	_LNBP21_VSEL@GOTPCREL(%rip), %rdi
	movq	_LNBP21_EN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	orl	(%rdi), %ecx
	notl	%ecx
	andl	(%rax), %ecx
	movl	%ecx, (%rax)
	cmpl	$128, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$129, %esi
	je	LBB0_5
## %bb.2:
	cmpl	$130, %esi
	jne	LBB0_4
## %bb.3:
	orl	(%rdx), %ecx
	jmp	LBB0_6
LBB0_5:
	orl	(%rdx), %ecx
	orl	(%rdi), %ecx
LBB0_6:
	orl	4(%rax), %ecx
	andl	8(%rax), %ecx
	movl	%ecx, (%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
	jmp	LBB0_7
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$32, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LNBP21_VSEL,4,2                ## @LNBP21_VSEL
	.comm	_LNBP21_EN,4,2                  ## @LNBP21_EN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_lnbp21_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 lnbp21_set_voltage
lCPI0_0:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_lnbp21_set_voltage:                    ; @lnbp21_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]
Lloh2:
	adrp	x11, _LNBP21_VSEL@GOTPAGE
Lloh3:
	ldr	x11, [x11, _LNBP21_VSEL@GOTPAGEOFF]
	ldr	w9, [x11]
Lloh4:
	adrp	x10, _LNBP21_EN@GOTPAGE
Lloh5:
	ldr	x10, [x10, _LNBP21_EN@GOTPAGEOFF]
	ldr	w12, [x10]
	orr	w9, w12, w9
	ldr	w12, [x8]
	bic	w9, w12, w9
	str	w9, [x8]
	cmp	w1, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w1, #130
	b.ne	LBB0_6
; %bb.3:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_5
LBB0_4:
	ldr	w10, [x10]
	ldr	w11, [x11]
	orr	w9, w10, w9
	orr	w9, w9, w11
LBB0_5:
	ldp	w10, w11, [x8, #4]
	orr	w9, w9, w10
	and	w9, w11, w9
	str	w9, [x8]
	ldr	w0, [x8, #12]
	add	x1, sp, #8
	mov	w2, #1
	bl	_i2c_transfer
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #1
	csneg	w0, wzr, w8, eq
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_LNBP21_VSEL,4,2                ; @LNBP21_VSEL
	.comm	_LNBP21_EN,4,2                  ; @LNBP21_EN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_lnbp21_set_voltage
.subsections_via_symbols
