	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_auxadc_read_irq
_wm831x_auxadc_read_irq:                ## @wm831x_auxadc_read_irq
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	12(%rax), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_init_completion
	movl	%r14d, (%r15)
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	addq	$8, %rdi
	leaq	12(%rbx), %rsi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_list_add
	movl	(%rbx), %r12d
	movl	%r12d, %eax
	testl	%r12d, %r12d
	je	LBB0_3
LBB0_5:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	movl	%r14d, %ecx
	shll	%cl, %r13d
	btl	%r14d, %eax
	jae	LBB0_6
## %bb.10:
	testl	%r12d, %r12d
	je	LBB0_11
LBB0_13:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	$500, %edi                      ## imm = 0x1F4
	callq	_msecs_to_jiffies
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_wait_for_completion_timeout
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_list_del
	movl	4(%r15), %r14d
	jmp	LBB0_14
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_15
LBB0_3:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	_WM831X_AUXADC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM831X_AUX_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	%ecx, %edx
	callq	_wm831x_set_bits
	testl	%eax, %eax
	je	LBB0_4
## %bb.16:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_14
LBB0_6:
	movq	_WM831X_AUXADC_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r13d, %ecx
	callq	_wm831x_set_bits
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movl	(%rbx), %eax
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_5
LBB0_9:
	orl	%r13d, (%rbx)
	testl	%r12d, %r12d
	jne	LBB0_13
LBB0_11:
	movq	_WM831X_AUXADC_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM831X_AUX_CVT_ENA@GOTPCREL(%rip), %rax
	movq	_WM831X_AUX_RATE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, %edx
	callq	_wm831x_set_bits
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movl	%r14d, %edx
	callq	_dev_err
	movq	-48(%rbp), %r13                 ## 8-byte Reload
LBB0_14:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movq	%r15, %rdi
	callq	_kfree
LBB0_15:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_WM831X_AUXADC_CONTROL,4,2      ## @WM831X_AUXADC_CONTROL
	.comm	_WM831X_AUX_ENA,4,2             ## @WM831X_AUX_ENA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable AUXADC: %d\n"

	.comm	_WM831X_AUXADC_SOURCE,4,2       ## @WM831X_AUXADC_SOURCE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set AUXADC source: %d\n"

	.comm	_WM831X_AUX_CVT_ENA,4,2         ## @WM831X_AUX_CVT_ENA
	.comm	_WM831X_AUX_RATE_MASK,4,2       ## @WM831X_AUX_RATE_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Failed to start AUXADC: %d\n"

	.no_dead_strip	_wm831x_auxadc_read_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_auxadc_read_irq
_wm831x_auxadc_read_irq:                ; @wm831x_auxadc_read_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x22, x0, #12
	mov	x0, x22
	bl	_init_completion
	str	w24, [x19]
Lloh3:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [x19, #4]
	add	x20, x21, #4
	mov	x0, x20
	bl	_mutex_lock
	add	x23, x19, #8
	add	x1, x21, #12
	mov	x0, x23
	bl	_list_add
	ldr	w26, [x21]
	mov	x8, x26
	cbz	w26, LBB0_6
LBB0_2:
	mov	w9, #1
	lsl	w24, w9, w24
	tst	w8, w24
	b.eq	LBB0_8
; %bb.3:
	cbz	w26, LBB0_12
LBB0_4:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #500
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x22
	bl	_wait_for_completion_timeout
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x23
	bl	_list_del
	ldr	w25, [x19, #4]
	b	LBB0_15
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_16
LBB0_6:
Lloh9:
	adrp	x8, _WM831X_AUXADC_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _WM831X_AUXADC_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _WM831X_AUX_ENA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WM831X_AUX_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x2
	bl	_wm831x_set_bits
	cbz	w0, LBB0_10
; %bb.7:
	mov	x25, x0
	ldr	w0, [x21, #8]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_8:
Lloh17:
	adrp	x8, _WM831X_AUXADC_SOURCE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM831X_AUXADC_SOURCE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x24
	mov	x3, x24
	bl	_wm831x_set_bits
	cbz	w0, LBB0_11
; %bb.9:
	mov	x25, x0
	ldr	w0, [x21, #8]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_10:
	ldr	w8, [x21]
	b	LBB0_2
LBB0_11:
	ldr	w8, [x21]
	orr	w8, w8, w24
	str	w8, [x21]
	cbnz	w26, LBB0_4
LBB0_12:
Lloh22:
	adrp	x8, _WM831X_AUXADC_CONTROL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM831X_AUXADC_CONTROL@GOTPAGEOFF]
Lloh24:
	adrp	x9, _WM831X_AUX_CVT_ENA@GOTPAGE
Lloh25:
	ldr	x9, [x9, _WM831X_AUX_CVT_ENA@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	ldr	w8, [x9]
Lloh28:
	adrp	x9, _WM831X_AUX_RATE_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WM831X_AUX_RATE_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	mov	x3, x2
	bl	_wm831x_set_bits
	cbz	w0, LBB0_4
; %bb.13:
	mov	x25, x0
	ldr	w0, [x21, #8]
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x2, x25
	bl	_dev_err
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	bl	_kfree
LBB0_16:
	mov	x0, x25
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_WM831X_AUXADC_CONTROL,4,2      ; @WM831X_AUXADC_CONTROL
	.comm	_WM831X_AUX_ENA,4,2             ; @WM831X_AUX_ENA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable AUXADC: %d\n"

	.comm	_WM831X_AUXADC_SOURCE,4,2       ; @WM831X_AUXADC_SOURCE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set AUXADC source: %d\n"

	.comm	_WM831X_AUX_CVT_ENA,4,2         ; @WM831X_AUX_CVT_ENA
	.comm	_WM831X_AUX_RATE_MASK,4,2       ; @WM831X_AUX_RATE_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Failed to start AUXADC: %d\n"

	.no_dead_strip	_wm831x_auxadc_read_irq
.subsections_via_symbols
