	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function samsung_smt_7020_set_voltage
_samsung_smt_7020_set_voltage:          ## @samsung_smt_7020_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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	(%rdi), %rax
	movq	(%rax), %r14
	movl	$8, -56(%rbp)
	leaq	-28(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	$4, -40(%rbp)
	movq	_MO_GP0_IO@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	$32768, %esi                    ## imm = 0x8000
	callq	_cx_set
	cmpl	$128, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$129, %ebx
	je	LBB0_5
## %bb.2:
	cmpl	$130, %ebx
	jne	LBB0_4
## %bb.3:
	movq	_ISL6421_LLC1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_ISL6421_EN1@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_5:
	movq	_ISL6421_EN1@GOTPCREL(%rip), %rcx
	movq	_ISL6421_LLC1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_ISL6421_VSEL1@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %eax
	movl	%eax, -28(%rbp)
	movl	(%r15), %edi
	movl	$128, %esi
	callq	_cx_clear
LBB0_7:
	movq	(%r14), %rdi
	leaq	-56(%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_8
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MO_GP0_IO,4,2                  ## @MO_GP0_IO
	.comm	_ISL6421_EN1,4,2                ## @ISL6421_EN1
	.comm	_ISL6421_LLC1,4,2               ## @ISL6421_LLC1
	.comm	_ISL6421_VSEL1,4,2              ## @ISL6421_VSEL1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_samsung_smt_7020_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 samsung_smt_7020_set_voltage
lCPI0_0:
	.long	4                               ; 0x4
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_samsung_smt_7020_set_voltage:          ; @samsung_smt_7020_set_voltage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	w8, #8
	str	w8, [sp]
	add	x8, sp, #28
	str	x8, [sp, #8]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #16]
Lloh2:
	adrp	x21, _MO_GP0_IO@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MO_GP0_IO@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #32768
	bl	_cx_set
	cmp	w19, #128
	b.eq	LBB0_6
; %bb.1:
	cmp	w19, #129
	b.eq	LBB0_4
; %bb.2:
	cmp	w19, #130
	b.ne	LBB0_7
; %bb.3:
Lloh4:
	adrp	x8, _ISL6421_LLC1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ISL6421_LLC1@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _ISL6421_EN1@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ISL6421_EN1@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _ISL6421_EN1@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ISL6421_EN1@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _ISL6421_LLC1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ISL6421_LLC1@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _ISL6421_VSEL1@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ISL6421_VSEL1@GOTPAGEOFF]
LBB0_5:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #28]
	ldr	w0, [x21]
	mov	w1, #128
	bl	_cx_clear
LBB0_6:
	ldr	x0, [x20]
	mov	x1, sp
	mov	w2, #1
	bl	_i2c_transfer
Lloh17:
	adrp	x8, _EIO@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, #1
	csneg	w0, wzr, w8, eq
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_MO_GP0_IO,4,2                  ; @MO_GP0_IO
	.comm	_ISL6421_EN1,4,2                ; @ISL6421_EN1
	.comm	_ISL6421_LLC1,4,2               ; @ISL6421_LLC1
	.comm	_ISL6421_VSEL1,4,2              ; @ISL6421_VSEL1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_samsung_smt_7020_set_voltage
.subsections_via_symbols
