	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_hp_jack_detect          ## -- Begin function wm8350_hp_jack_detect
	.p2align	4, 0x90
_wm8350_hp_jack_detect:                 ## @wm8350_hp_jack_detect
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	8(%rdi), %r14
	cmpl	$128, %esi
	je	LBB0_4
## %bb.1:
	cmpl	$129, %esi
	jne	LBB0_3
## %bb.2:
	leaq	16(%r14), %rsi
	movq	%rdx, 24(%r14)
	movq	_WM8350_JDL_ENA@GOTPCREL(%rip), %rax
	movq	_WM8350_IRQ_CODEC_JCK_DET_L@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_4:
	movq	%rdx, 8(%r14)
	movq	_WM8350_JDR_ENA@GOTPCREL(%rip), %rax
	movq	_WM8350_IRQ_CODEC_JCK_DET_R@GOTPCREL(%rip), %rdx
	movq	%r14, %rsi
LBB0_5:
	movl	%ecx, (%rsi)
	movl	(%rax), %r15d
	movl	(%rdx), %r12d
	movq	_WM8350_POWER_MGMT_4@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_TOCLK_ENA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_wm8350_set_bits
	movq	_WM8350_JACK_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_wm8350_set_bits
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_wm8350_hp_jack_handler
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_wm8350_unmask_irq
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM8350_IRQ_CODEC_JCK_DET_L,4,2 ## @WM8350_IRQ_CODEC_JCK_DET_L
	.comm	_WM8350_JDL_ENA,4,2             ## @WM8350_JDL_ENA
	.comm	_WM8350_IRQ_CODEC_JCK_DET_R,4,2 ## @WM8350_IRQ_CODEC_JCK_DET_R
	.comm	_WM8350_JDR_ENA,4,2             ## @WM8350_JDR_ENA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM8350_POWER_MGMT_4,4,2        ## @WM8350_POWER_MGMT_4
	.comm	_WM8350_TOCLK_ENA,4,2           ## @WM8350_TOCLK_ENA
	.comm	_WM8350_JACK_DETECT,4,2         ## @WM8350_JACK_DETECT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_hp_jack_detect          ; -- Begin function wm8350_hp_jack_detect
	.p2align	2
_wm8350_hp_jack_detect:                 ; @wm8350_hp_jack_detect
	.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
	ldp	x19, x20, [x0]
	cmp	w1, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w1, #129
	b.ne	LBB0_5
; %bb.2:
	add	x9, x20, #16
	str	x2, [x20, #24]
Lloh0:
	adrp	x8, _WM8350_JDL_ENA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM8350_JDL_ENA@GOTPAGEOFF]
Lloh2:
	adrp	x10, _WM8350_IRQ_CODEC_JCK_DET_L@GOTPAGE
Lloh3:
	ldr	x10, [x10, _WM8350_IRQ_CODEC_JCK_DET_L@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	str	x2, [x20, #8]
Lloh4:
	adrp	x8, _WM8350_JDR_ENA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WM8350_JDR_ENA@GOTPAGEOFF]
	mov	x9, x20
Lloh6:
	adrp	x10, _WM8350_IRQ_CODEC_JCK_DET_R@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WM8350_IRQ_CODEC_JCK_DET_R@GOTPAGEOFF]
LBB0_4:
	str	w3, [x9]
	ldr	w21, [x8]
	ldr	w22, [x10]
Lloh8:
	adrp	x8, _WM8350_POWER_MGMT_4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WM8350_POWER_MGMT_4@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _WM8350_TOCLK_ENA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WM8350_TOCLK_ENA@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_set_bits
Lloh14:
	adrp	x8, _WM8350_JACK_DETECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8350_JACK_DETECT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_wm8350_set_bits
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_wm8350_hp_jack_handler
	mov	x0, x19
	mov	x1, x22
	bl	_wm8350_unmask_irq
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WM8350_IRQ_CODEC_JCK_DET_L,4,2 ; @WM8350_IRQ_CODEC_JCK_DET_L
	.comm	_WM8350_JDL_ENA,4,2             ; @WM8350_JDL_ENA
	.comm	_WM8350_IRQ_CODEC_JCK_DET_R,4,2 ; @WM8350_IRQ_CODEC_JCK_DET_R
	.comm	_WM8350_JDR_ENA,4,2             ; @WM8350_JDR_ENA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM8350_POWER_MGMT_4,4,2        ; @WM8350_POWER_MGMT_4
	.comm	_WM8350_TOCLK_ENA,4,2           ; @WM8350_TOCLK_ENA
	.comm	_WM8350_JACK_DETECT,4,2         ; @WM8350_JACK_DETECT
.subsections_via_symbols
