	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8994_irq_init                ## -- Begin function wm8994_irq_init
	.p2align	4, 0x90
_wm8994_irq_init:                       ## @wm8994_irq_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %r12
	movq	(%r12), %r14
	orq	(%rax), %r14
	movq	32(%rbx), %rax
	testq	%rax, %rax
	cmovneq	%rax, %r14
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	orq	(%rax), %rcx
	testq	%r14, %rcx
	je	LBB0_10
## %bb.3:
	movl	40(%rbx), %edi
	callq	_gpio_to_irq
	movq	(%rbx), %r15
	cmpq	%r15, %rax
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %r12d
	movl	40(%rbx), %r13d
	movl	%r13d, %edi
	callq	_gpio_to_irq
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %r12
	movq	%r15, %rdx
	movl	%r13d, %ecx
	movq	%rax, %r8
	xorl	%eax, %eax
	callq	_dev_warn
	movl	40(%rbx), %edi
	callq	_gpio_to_irq
	movq	%rax, (%rbx)
LBB0_5:
	movl	8(%rbx), %edi
	movl	40(%rbx), %esi
	movq	_GPIOF_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rcx
	callq	_devm_gpio_request_one
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_13
LBB0_1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_warn
	movq	$0, 16(%rbx)
	jmp	LBB0_15
LBB0_10:
	movl	24(%rbx), %edi
	movq	16(%rbx), %rcx
	leaq	12(%rbx), %r9
	movq	_wm8994_irq_chip@GOTPCREL(%rip), %r8
	movq	%r14, %rdx
	callq	_regmap_add_irq_chip
	jmp	LBB0_11
LBB0_7:
	movq	_wm8994_edge_irq_ops@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_irq_domain_add_linear
	movl	%eax, 28(%rbx)
	movl	24(%rbx), %r15d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_irq_create_mapping
	movq	(%r12), %rdx
	movq	16(%rbx), %rcx
	leaq	12(%rbx), %r9
	movq	_wm8994_irq_chip@GOTPCREL(%rip), %r8
	movl	%r15d, %edi
	movq	%rax, %rsi
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %r15d
	movl	8(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_13
LBB0_9:
	movq	(%rbx), %rdi
	movq	_wm8994_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.5(%rip), %r8
	xorl	%esi, %esi
	movq	%r14, %rcx
	movq	%rbx, %r9
	callq	_request_threaded_irq
LBB0_11:
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:
	movl	8(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_13:
	movl	%r15d, %edx
	callq	_dev_err
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_WM8994_INTERRUPT_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_wm8994_reg_write
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No interrupt specified, no interrupts\n"

	.comm	_IRQF_TRIGGER_HIGH,8,3          ## @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,8,3               ## @IRQF_ONESHOT
	.comm	_IRQF_TRIGGER_RISING,8,3        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ## @IRQF_TRIGGER_FALLING
L_.str.1:                               ## @.str.1
	.asciz	"IRQ %d is not GPIO %d (%d)\n"

	.comm	_GPIOF_IN,4,2                   ## @GPIOF_IN
L_.str.2:                               ## @.str.2
	.asciz	"WM8994 IRQ"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to get IRQ GPIO: %d\n"

	.comm	_wm8994_edge_irq_ops,4,2        ## @wm8994_edge_irq_ops
	.comm	_wm8994_irq_chip,4,2            ## @wm8994_irq_chip
L_.str.4:                               ## @.str.4
	.asciz	"Failed to get IRQ: %d\n"

	.comm	_wm8994_edge_irq,4,2            ## @wm8994_edge_irq
L_.str.5:                               ## @.str.5
	.asciz	"WM8994 edge"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to register IRQ chip: %d\n"

	.comm	_WM8994_INTERRUPT_CONTROL,4,2   ## @WM8994_INTERRUPT_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8994_irq_init                ; -- Begin function wm8994_irq_init
	.p2align	2
_wm8994_irq_init:                       ; @wm8994_irq_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	ldr	x1, [x0]
	cbz	x1, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _IRQF_ONESHOT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _IRQF_ONESHOT@GOTPAGEOFF]
	ldr	x9, [x23]
	orr	x8, x9, x8
	ldr	x9, [x19, #32]
	cmp	x9, #0
	csel	x20, x8, x9, eq
Lloh5:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	orr	x8, x9, x8
	tst	x8, x20
	b.eq	LBB0_7
; %bb.2:
	ldr	w0, [x19, #40]
	bl	_gpio_to_irq
	ldr	x24, [x19]
	cmp	x0, x24
	b.eq	LBB0_4
; %bb.3:
	ldr	w21, [x19, #8]
	ldr	w22, [x19, #40]
	mov	x0, x22
	bl	_gpio_to_irq
	stp	x22, x0, [sp, #8]
	str	x24, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_warn
	ldr	w0, [x19, #40]
	bl	_gpio_to_irq
	str	x0, [x19]
LBB0_4:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #40]
Lloh13:
	adrp	x8, _GPIOF_IN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GPIOF_IN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	bl	_devm_gpio_request_one
	cbz	w0, LBB0_9
; %bb.5:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_11
LBB0_6:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	w21, #0
	str	xzr, [x19, #16]
	b	LBB0_12
LBB0_7:
	ldr	w0, [x19, #24]
	ldr	x3, [x19, #16]
	add	x5, x19, #12
Lloh22:
	adrp	x4, _wm8994_irq_chip@GOTPAGE
Lloh23:
	ldr	x4, [x4, _wm8994_irq_chip@GOTPAGEOFF]
	mov	x2, x20
	bl	_regmap_add_irq_chip
	mov	x21, x0
	cbz	w0, LBB0_14
LBB0_8:
	ldr	w0, [x19, #8]
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_11
LBB0_9:
Lloh26:
	adrp	x2, _wm8994_edge_irq_ops@GOTPAGE
Lloh27:
	ldr	x2, [x2, _wm8994_edge_irq_ops@GOTPAGEOFF]
	mov	x0, #0
	mov	w1, #1
	mov	x3, x19
	bl	_irq_domain_add_linear
	str	w0, [x19, #28]
	ldr	w21, [x19, #24]
	mov	w1, #0
	bl	_irq_create_mapping
	mov	x1, x0
	ldr	x2, [x23]
	ldr	x3, [x19, #16]
	add	x5, x19, #12
Lloh28:
	adrp	x4, _wm8994_irq_chip@GOTPAGE
Lloh29:
	ldr	x4, [x4, _wm8994_irq_chip@GOTPAGEOFF]
	mov	x0, x21
	bl	_regmap_add_irq_chip
	cbz	w0, LBB0_13
; %bb.10:
	mov	x21, x0
	ldr	w0, [x19, #8]
Lloh30:
	adrp	x1, l_.str.4@PAGE
Lloh31:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_11:
	mov	x2, x21
	bl	_dev_err
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
	ldr	x0, [x19]
Lloh32:
	adrp	x8, _wm8994_edge_irq@GOTPAGE
Lloh33:
	ldr	x8, [x8, _wm8994_edge_irq@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x4, l_.str.5@PAGE
Lloh36:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x1, #0
	mov	x3, x20
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x21, x0
	cbnz	w0, LBB0_8
LBB0_14:
Lloh37:
	adrp	x8, _WM8994_INTERRUPT_CONTROL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WM8994_INTERRUPT_CONTROL@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_wm8994_reg_write
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No interrupt specified, no interrupts\n"

	.comm	_IRQF_TRIGGER_HIGH,8,3          ; @IRQF_TRIGGER_HIGH
	.comm	_IRQF_ONESHOT,8,3               ; @IRQF_ONESHOT
	.comm	_IRQF_TRIGGER_RISING,8,3        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,8,3       ; @IRQF_TRIGGER_FALLING
l_.str.1:                               ; @.str.1
	.asciz	"IRQ %d is not GPIO %d (%d)\n"

	.comm	_GPIOF_IN,4,2                   ; @GPIOF_IN
l_.str.2:                               ; @.str.2
	.asciz	"WM8994 IRQ"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to get IRQ GPIO: %d\n"

	.comm	_wm8994_edge_irq_ops,4,2        ; @wm8994_edge_irq_ops
	.comm	_wm8994_irq_chip,4,2            ; @wm8994_irq_chip
l_.str.4:                               ; @.str.4
	.asciz	"Failed to get IRQ: %d\n"

	.comm	_wm8994_edge_irq,4,2            ; @wm8994_edge_irq
l_.str.5:                               ; @.str.5
	.asciz	"WM8994 edge"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to register IRQ chip: %d\n"

	.comm	_WM8994_INTERRUPT_CONTROL,4,2   ; @WM8994_INTERRUPT_CONTROL
.subsections_via_symbols
