	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_hp_jack_handler
_wm8350_hp_jack_handler:                ## @wm8350_hp_jack_handler
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rdi, %r14
	cmpl	$128, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_6
## %bb.2:
	addq	$8, %r15
	movq	_WM8350_JACK_L_LVL@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_WM8350_JACK_R_LVL@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %ebx
	cmpl	$0, 4(%r15)
	je	LBB0_7
LBB0_5:
	movl	$200, %edi
	callq	_msleep
	movq	_WM8350_JACK_PIN_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_wm8350_reg_read
	andl	%eax, %ebx
	movl	(%r15), %edx
	movl	4(%r15), %edi
	cmovnel	%edx, %ebx
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_snd_soc_jack_report            ## TAILCALL
LBB0_6:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_BUG
                                        ## implicit-def: $ebx
	cmpl	$0, 4(%r15)
	jne	LBB0_5
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_JACK_L_LVL,4,2          ## @WM8350_JACK_L_LVL
	.comm	_WM8350_JACK_R_LVL,4,2          ## @WM8350_JACK_R_LVL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Jack interrupt called with no jack\n"

	.comm	_WM8350_JACK_PIN_STATUS,4,2     ## @WM8350_JACK_PIN_STATUS
	.no_dead_strip	_wm8350_hp_jack_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_hp_jack_handler
_wm8350_hp_jack_handler:                ; @wm8350_hp_jack_handler
	.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
	mov	x19, x2
	mov	x20, x0
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_6
; %bb.2:
	add	x19, x19, #8
Lloh0:
	adrp	x8, _WM8350_JACK_L_LVL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_JACK_L_LVL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _WM8350_JACK_R_LVL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WM8350_JACK_R_LVL@GOTPAGEOFF]
LBB0_4:
	ldr	w21, [x8]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_7
LBB0_5:
	mov	w0, #200
	bl	_msleep
Lloh4:
	adrp	x8, _WM8350_JACK_PIN_STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM8350_JACK_PIN_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_wm8350_reg_read
	tst	w0, w21
	ldp	w2, w0, [x19]
	csel	w1, wzr, w2, eq
	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
	b	_snd_soc_jack_report
LBB0_6:
	bl	_BUG
	mov	x19, #0
                                        ; implicit-def: $w21
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_5
LBB0_7:
	ldr	w0, [x20]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	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
	b	_dev_warn
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_JACK_L_LVL,4,2          ; @WM8350_JACK_L_LVL
	.comm	_WM8350_JACK_R_LVL,4,2          ; @WM8350_JACK_R_LVL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Jack interrupt called with no jack\n"

	.comm	_WM8350_JACK_PIN_STATUS,4,2     ; @WM8350_JACK_PIN_STATUS
	.no_dead_strip	_wm8350_hp_jack_handler
.subsections_via_symbols
