	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adc5_configure
_adc5_configure:                        ## @adc5_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	%r15
	pushq	%r14
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_ADC5_USR_DIG_PARAM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdx
	movl	$24, %ecx
	callq	_adc5_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_adc5_update_dig_param
	movq	_ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-60(%rbp), %eax
	orl	8(%rbx), %eax
	movl	%eax, -60(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	_ADC5_USR_HW_SETTLE_DELAY_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-52(%rbp), %eax
	orl	(%rbx), %eax
	movl	%eax, -52(%rbp)
	movq	_ADC5_USR_EN_CTL1_ADC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -48(%rbp)
	movq	_ADC5_USR_CONV_REQ_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -44(%rbp)
	cmpl	$0, 4(%r14)
	jne	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	callq	_reinit_completion
LBB0_3:
	movl	(%r15), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	movl	$24, %ecx
	callq	_adc5_write
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ADC5_USR_DIG_PARAM,4,2         ## @ADC5_USR_DIG_PARAM
	.comm	_ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK,8,3 ## @ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK
	.comm	_ADC5_USR_HW_SETTLE_DELAY_MASK,8,3 ## @ADC5_USR_HW_SETTLE_DELAY_MASK
	.comm	_ADC5_USR_EN_CTL1_ADC_EN,4,2    ## @ADC5_USR_EN_CTL1_ADC_EN
	.comm	_ADC5_USR_CONV_REQ_REQ,4,2      ## @ADC5_USR_CONV_REQ_REQ
	.no_dead_strip	_adc5_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adc5_configure
_adc5_configure:                        ; @adc5_configure
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x21, _ADC5_USR_DIG_PARAM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _ADC5_USR_DIG_PARAM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x2, sp
	mov	w3, #24
	bl	_adc5_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x20
	bl	_adc5_update_dig_param
Lloh5:
	adrp	x8, _ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]
	ldr	w10, [sp, #12]
	bic	w8, w9, w8
	ldp	w11, w9, [x20, #4]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _ADC5_USR_HW_SETTLE_DELAY_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ADC5_USR_HW_SETTLE_DELAY_MASK@GOTPAGEOFF]
	ldr	w12, [x20]
	stp	w8, w11, [sp, #4]
Lloh10:
	ldr	w8, [x9]
	bic	w8, w10, w8
	orr	w8, w12, w8
Lloh11:
	adrp	x9, _ADC5_USR_EN_CTL1_ADC_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ADC5_USR_EN_CTL1_ADC_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldp	w10, w11, [sp, #16]
	orr	w9, w10, w9
	stp	w8, w9, [sp, #12]
Lloh14:
	adrp	x8, _ADC5_USR_CONV_REQ_REQ@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADC5_USR_CONV_REQ_REQ@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w11, w8
	str	w8, [sp, #20]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_reinit_completion
LBB0_3:
	ldr	w1, [x21]
	mov	x2, sp
	mov	x0, x19
	mov	w3, #24
	bl	_adc5_write
LBB0_4:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	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
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ADC5_USR_DIG_PARAM,4,2         ; @ADC5_USR_DIG_PARAM
	.comm	_ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK,8,3 ; @ADC5_USR_FAST_AVG_CTL_SAMPLES_MASK
	.comm	_ADC5_USR_HW_SETTLE_DELAY_MASK,8,3 ; @ADC5_USR_HW_SETTLE_DELAY_MASK
	.comm	_ADC5_USR_EN_CTL1_ADC_EN,4,2    ; @ADC5_USR_EN_CTL1_ADC_EN
	.comm	_ADC5_USR_CONV_REQ_REQ,4,2      ; @ADC5_USR_CONV_REQ_REQ
	.no_dead_strip	_adc5_configure
.subsections_via_symbols
