	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_madc_start_conversion
_twl4030_madc_start_conversion:         ## @twl4030_madc_start_conversion
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_TWL4030_MADC_SW1@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_TWL4030_MADC_SW2@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	_twl4030_conversion_methods@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%esi, %r12
	movq	_TWL4030_MODULE_MADC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_TWL4030_MADC_SW_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15,%r12,4), %edx
	callq	_twl_i2c_write_u8
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %ebx
	movl	(%r14), %edi
	movl	(%r15,%r12,4), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_MADC_SW1,4,2           ## @TWL4030_MADC_SW1
	.comm	_TWL4030_MADC_SW2,4,2           ## @TWL4030_MADC_SW2
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_twl4030_conversion_methods,8,3 ## @twl4030_conversion_methods
	.comm	_TWL4030_MODULE_MADC,4,2        ## @TWL4030_MODULE_MADC
	.comm	_TWL4030_MADC_SW_START,4,2      ## @TWL4030_MADC_SW_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to write ctrl register 0x%X\n"

	.no_dead_strip	_twl4030_madc_start_conversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_madc_start_conversion
_twl4030_madc_start_conversion:         ; @twl4030_madc_start_conversion
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _TWL4030_MADC_SW1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TWL4030_MADC_SW1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TWL4030_MADC_SW2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TWL4030_MADC_SW2@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w1
	ccmp	w9, w1, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh6:
	adrp	x8, _twl4030_conversion_methods@GOTPAGE
Lloh7:
	ldr	x8, [x8, _twl4030_conversion_methods@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
Lloh9:
	adrp	x8, _TWL4030_MODULE_MADC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TWL4030_MODULE_MADC@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _TWL4030_MADC_SW_START@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TWL4030_MADC_SW_START@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x22, w20, sxtw #2]
	bl	_twl_i2c_write_u8
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
	sxtw	x8, w20
	ldr	w0, [x19]
	ldr	w2, [x22, x8, lsl #2]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_4:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_MADC_SW1,4,2           ; @TWL4030_MADC_SW1
	.comm	_TWL4030_MADC_SW2,4,2           ; @TWL4030_MADC_SW2
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_twl4030_conversion_methods,8,3 ; @twl4030_conversion_methods
	.comm	_TWL4030_MODULE_MADC,4,2        ; @TWL4030_MODULE_MADC
	.comm	_TWL4030_MADC_SW_START,4,2      ; @TWL4030_MADC_SW_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to write ctrl register 0x%X\n"

	.no_dead_strip	_twl4030_madc_start_conversion
.subsections_via_symbols
