	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iadc_configure
_iadc_configure:                        ## @iadc_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_IADC_OP_MODE_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IADC_OP_MODE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_IADC_TRIM_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_IADC_MODE_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iadc_write
	testl	%eax, %eax
	js	LBB0_11
## %bb.1:
	movq	_IADC_CH_SEL_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_iadc_write
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movq	_IADC_DEF_DECIMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IADC_DIG_DEC_RATIO_SEL_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_IADC_DIG_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_iadc_write
	testl	%eax, %eax
	js	LBB0_11
## %bb.3:
	movq	_IADC_HW_SETTLE_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IADC_DEF_HW_SETTLE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_iadc_write
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	_IADC_FAST_AVG_CTL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IADC_DEF_AVG_SAMPLES@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_iadc_write
	testl	%eax, %eax
	js	LBB0_11
## %bb.5:
	movl	(%rbx), %edx
	movq	_IADC_FAST_AVG_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%edx, %edx
	je	LBB0_7
## %bb.6:
	movq	_IADC_FAST_AVG_EN_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_7:
	movq	%r14, %rdi
	callq	_iadc_write
	testl	%eax, %eax
	js	LBB0_11
## %bb.8:
	cmpl	$0, 4(%r14)
	jne	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_reinit_completion
LBB0_10:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_iadc_set_state
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	_IADC_CONV_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IADC_CONV_REQ_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_iadc_write                     ## TAILCALL
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IADC_OP_MODE_NORMAL,4,2        ## @IADC_OP_MODE_NORMAL
	.comm	_IADC_OP_MODE_SHIFT,4,2         ## @IADC_OP_MODE_SHIFT
	.comm	_IADC_TRIM_EN,4,2               ## @IADC_TRIM_EN
	.comm	_IADC_MODE_CTL,4,2              ## @IADC_MODE_CTL
	.comm	_IADC_CH_SEL_CTL,4,2            ## @IADC_CH_SEL_CTL
	.comm	_IADC_DEF_DECIMATION,4,2        ## @IADC_DEF_DECIMATION
	.comm	_IADC_DIG_DEC_RATIO_SEL_SHIFT,4,2 ## @IADC_DIG_DEC_RATIO_SEL_SHIFT
	.comm	_IADC_DIG_PARAM,4,2             ## @IADC_DIG_PARAM
	.comm	_IADC_HW_SETTLE_DELAY,4,2       ## @IADC_HW_SETTLE_DELAY
	.comm	_IADC_DEF_HW_SETTLE_TIME,4,2    ## @IADC_DEF_HW_SETTLE_TIME
	.comm	_IADC_FAST_AVG_CTL,4,2          ## @IADC_FAST_AVG_CTL
	.comm	_IADC_DEF_AVG_SAMPLES,4,2       ## @IADC_DEF_AVG_SAMPLES
	.comm	_IADC_FAST_AVG_EN,4,2           ## @IADC_FAST_AVG_EN
	.comm	_IADC_FAST_AVG_EN_SET,4,2       ## @IADC_FAST_AVG_EN_SET
	.comm	_IADC_CONV_REQ,4,2              ## @IADC_CONV_REQ
	.comm	_IADC_CONV_REQ_SET,4,2          ## @IADC_CONV_REQ_SET
	.no_dead_strip	_iadc_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iadc_configure
_iadc_configure:                        ; @iadc_configure
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _IADC_OP_MODE_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IADC_OP_MODE_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IADC_OP_MODE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IADC_OP_MODE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IADC_TRIM_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IADC_TRIM_EN@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	orr	w2, w8, w9
Lloh9:
	adrp	x8, _IADC_MODE_CTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IADC_MODE_CTL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_iadc_write
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh12:
	adrp	x8, _IADC_CH_SEL_CTL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IADC_CH_SEL_CTL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_iadc_write
	tbnz	w0, #31, LBB0_10
; %bb.2:
Lloh15:
	adrp	x8, _IADC_DEF_DECIMATION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IADC_DEF_DECIMATION@GOTPAGEOFF]
Lloh17:
	adrp	x9, _IADC_DIG_DEC_RATIO_SEL_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IADC_DIG_DEC_RATIO_SEL_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	lsl	w2, w8, w9
Lloh21:
	adrp	x8, _IADC_DIG_PARAM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IADC_DIG_PARAM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_iadc_write
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh24:
	adrp	x8, _IADC_HW_SETTLE_DELAY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IADC_HW_SETTLE_DELAY@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _IADC_DEF_HW_SETTLE_TIME@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IADC_DEF_HW_SETTLE_TIME@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_iadc_write
	tbnz	w0, #31, LBB0_10
; %bb.4:
Lloh30:
	adrp	x8, _IADC_FAST_AVG_CTL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IADC_FAST_AVG_CTL@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x20, _IADC_DEF_AVG_SAMPLES@GOTPAGE
Lloh34:
	ldr	x20, [x20, _IADC_DEF_AVG_SAMPLES@GOTPAGEOFF]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_iadc_write
	tbnz	w0, #31, LBB0_10
; %bb.5:
	ldr	w8, [x20]
Lloh35:
	adrp	x9, _IADC_FAST_AVG_EN@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IADC_FAST_AVG_EN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x9]
Lloh38:
	adrp	x9, _IADC_FAST_AVG_EN_SET@GOTPAGE
Lloh39:
	ldr	x9, [x9, _IADC_FAST_AVG_EN_SET@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w2, wzr, w9, eq
	mov	x0, x19
	bl	_iadc_write
	tbnz	w0, #31, LBB0_10
; %bb.6:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_reinit_completion
LBB0_8:
	mov	x0, x19
	mov	w1, #1
	bl	_iadc_set_state
	tbnz	w0, #31, LBB0_10
; %bb.9:
Lloh41:
	adrp	x8, _IADC_CONV_REQ@GOTPAGE
Lloh42:
	ldr	x8, [x8, _IADC_CONV_REQ@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x8, _IADC_CONV_REQ_SET@GOTPAGE
Lloh45:
	ldr	x8, [x8, _IADC_CONV_REQ_SET@GOTPAGEOFF]
Lloh46:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_iadc_write
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_IADC_OP_MODE_NORMAL,4,2        ; @IADC_OP_MODE_NORMAL
	.comm	_IADC_OP_MODE_SHIFT,4,2         ; @IADC_OP_MODE_SHIFT
	.comm	_IADC_TRIM_EN,4,2               ; @IADC_TRIM_EN
	.comm	_IADC_MODE_CTL,4,2              ; @IADC_MODE_CTL
	.comm	_IADC_CH_SEL_CTL,4,2            ; @IADC_CH_SEL_CTL
	.comm	_IADC_DEF_DECIMATION,4,2        ; @IADC_DEF_DECIMATION
	.comm	_IADC_DIG_DEC_RATIO_SEL_SHIFT,4,2 ; @IADC_DIG_DEC_RATIO_SEL_SHIFT
	.comm	_IADC_DIG_PARAM,4,2             ; @IADC_DIG_PARAM
	.comm	_IADC_HW_SETTLE_DELAY,4,2       ; @IADC_HW_SETTLE_DELAY
	.comm	_IADC_DEF_HW_SETTLE_TIME,4,2    ; @IADC_DEF_HW_SETTLE_TIME
	.comm	_IADC_FAST_AVG_CTL,4,2          ; @IADC_FAST_AVG_CTL
	.comm	_IADC_DEF_AVG_SAMPLES,4,2       ; @IADC_DEF_AVG_SAMPLES
	.comm	_IADC_FAST_AVG_EN,4,2           ; @IADC_FAST_AVG_EN
	.comm	_IADC_FAST_AVG_EN_SET,4,2       ; @IADC_FAST_AVG_EN_SET
	.comm	_IADC_CONV_REQ,4,2              ; @IADC_CONV_REQ
	.comm	_IADC_CONV_REQ_SET,4,2          ; @IADC_CONV_REQ_SET
	.no_dead_strip	_iadc_configure
.subsections_via_symbols
