	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm831x_auxadc_init             ## -- Begin function wm831x_auxadc_init
	.p2align	4, 0x90
_wm831x_auxadc_init:                    ## @wm831x_auxadc_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	addq	$28, %rdi
	callq	_mutex_init
	leaq	24(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	cmpq	$0, 16(%rbx)
	je	LBB0_3
## %bb.1:
	movq	_wm831x_auxadc_read_irq@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_WM831X_IRQ_AUXADC_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_wm831x_irq
	movq	_wm831x_auxadc_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leaq	L_.str(%rip), %r8
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%rbx, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	js	LBB0_2
LBB0_3:
	cmpq	$0, (%rbx)
	jne	LBB0_5
LBB0_4:
	movq	_wm831x_auxadc_read_polled@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	$0, (%rbx)
	cmpq	$0, (%rbx)
	jne	LBB0_5
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_wm831x_auxadc_read_irq,8,3     ## @wm831x_auxadc_read_irq
	.comm	_WM831X_IRQ_AUXADC_DATA,4,2     ## @WM831X_IRQ_AUXADC_DATA
	.comm	_wm831x_auxadc_irq,4,2          ## @wm831x_auxadc_irq
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"auxadc"

L_.str.1:                               ## @.str.1
	.asciz	"AUXADC IRQ request failed: %d\n"

	.comm	_wm831x_auxadc_read_polled,8,3  ## @wm831x_auxadc_read_polled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm831x_auxadc_init             ; -- Begin function wm831x_auxadc_init
	.p2align	2
_wm831x_auxadc_init:                    ; @wm831x_auxadc_init
	.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	x19, x0
	add	x0, x0, #28
	bl	_mutex_init
	add	x0, x19, #24
	bl	_INIT_LIST_HEAD
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _wm831x_auxadc_read_irq@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wm831x_auxadc_read_irq@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh3:
	adrp	x8, _WM831X_IRQ_AUXADC_DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM831X_IRQ_AUXADC_DATA@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_wm831x_irq
Lloh6:
	adrp	x8, _wm831x_auxadc_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _wm831x_auxadc_irq@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x4, l_.str@PAGE
Lloh13:
	add	x4, x4, l_.str@PAGEOFF
	mov	x1, #0
	mov	x5, x19
	bl	_request_threaded_irq
	tbnz	w0, #31, LBB0_5
LBB0_2:
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
LBB0_3:
Lloh14:
	adrp	x8, _wm831x_auxadc_read_polled@GOTPAGE
Lloh15:
	ldr	x8, [x8, _wm831x_auxadc_read_polled@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	str	xzr, [x19]
	ldr	x8, [x19]
	cbnz	x8, LBB0_4
	b	LBB0_3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_wm831x_auxadc_read_irq,8,3     ; @wm831x_auxadc_read_irq
	.comm	_WM831X_IRQ_AUXADC_DATA,4,2     ; @WM831X_IRQ_AUXADC_DATA
	.comm	_wm831x_auxadc_irq,4,2          ; @wm831x_auxadc_irq
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"auxadc"

l_.str.1:                               ; @.str.1
	.asciz	"AUXADC IRQ request failed: %d\n"

	.comm	_wm831x_auxadc_read_polled,8,3  ; @wm831x_auxadc_read_polled
.subsections_via_symbols
