	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm97xx_init_pen_irq
_wm97xx_init_pen_irq:                   ## @wm97xx_init_pen_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpl	$0, 4(%rax)
	sete	%dil
	callq	_BUG_ON
	movq	16(%rbx), %rdi
	movq	_wm97xx_pen_interrupt@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %r8
	callq	_request_irq
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	$0, 16(%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_2:
	movq	(%rbx), %rax
	movq	_WM9705_ID2@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_BUG_ON
	movq	_AC97_MISC_AFE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_wm97xx_reg_read
	movl	(%r15), %esi
	movq	8(%rbx), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	callq	_wm97xx_reg_write
	movq	%rbx, %rdi
	movl	$90, %esi
	callq	_wm97xx_reg_read
	andl	$-2, %eax
	movq	%rbx, %rdi
	movl	$90, %esi
	movl	%eax, %edx
	callq	_wm97xx_reg_write
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_wm97xx_pen_interrupt,4,2       ## @wm97xx_pen_interrupt
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wm97xx-pen"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to register pen down interrupt, polling"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WM9705_ID2,8,3                 ## @WM9705_ID2
	.comm	_AC97_MISC_AFE,4,2              ## @AC97_MISC_AFE
	.no_dead_strip	_wm97xx_init_pen_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm97xx_init_pen_irq
_wm97xx_init_pen_irq:                   ; @wm97xx_init_pen_irq
	.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
	ldr	x8, [x0, #8]
	ldr	w8, [x8, #4]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x8, _wm97xx_pen_interrupt@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wm97xx_pen_interrupt@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	str	xzr, [x19, #16]
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_2:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _WM9705_ID2@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WM9705_ID2@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh16:
	adrp	x20, _AC97_MISC_AFE@GOTPAGE
Lloh17:
	ldr	x20, [x20, _AC97_MISC_AFE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm97xx_reg_read
	ldr	w1, [x20]
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_wm97xx_reg_write
	mov	x0, x19
	mov	w1, #90
	bl	_wm97xx_reg_read
	and	w2, w0, #0xfffffffe
	mov	x0, x19
	mov	w1, #90
	bl	_wm97xx_reg_write
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_wm97xx_pen_interrupt,4,2       ; @wm97xx_pen_interrupt
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wm97xx-pen"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to register pen down interrupt, polling"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WM9705_ID2,8,3                 ; @WM9705_ID2
	.comm	_AC97_MISC_AFE,4,2              ; @AC97_MISC_AFE
	.no_dead_strip	_wm97xx_init_pen_irq
.subsections_via_symbols
