	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_irq_init                ## -- Begin function wm8350_irq_init
	.p2align	4, 0x90
_wm8350_irq_init:                       ## @wm8350_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, %r13
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_WM8350_SYSTEM_INTERRUPTS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	16(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	movq	_WM8350_INT_STATUS_1_MASK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_wm8350_reg_write
	movq	(%r14), %rsi
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_wm8350_reg_read
	movq	16(%r13), %rdi
	movl	%eax, (%rdi,%rbx,4)
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	leaq	12(%r13), %rdi
	callq	_mutex_init
	movl	%r12d, (%r13)
	testq	%r15, %r15
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	je	LBB0_6
## %bb.7:
	movl	(%r15), %eax
	testl	%eax, %eax
	movl	$-1, %ebx
	cmovgl	%eax, %ebx
	jmp	LBB0_8
LBB0_1:
	movl	8(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_20
LBB0_6:
	movl	$-1, %ebx
LBB0_8:
	movq	_wm8350_irqs@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	xorl	%r12d, %r12d
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_irq_alloc_descs
	movl	%eax, 4(%r13)
	testl	%eax, %eax
	js	LBB0_9
## %bb.10:
	testq	%r15, %r15
	je	LBB0_13
## %bb.11:
	cmpq	$0, 8(%r15)
	je	LBB0_13
## %bb.12:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WM8350_SYSTEM_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_IRQ_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_wm8350_set_bits
	jmp	LBB0_14
LBB0_9:
	movl	8(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_warn
	jmp	LBB0_20
LBB0_13:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_WM8350_SYSTEM_CONTROL_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM8350_IRQ_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_wm8350_clear_bits
LBB0_14:
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %ebx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	addl	4(%r13), %eax
	cmpl	%eax, %ebx
	jge	LBB0_17
## %bb.15:
	movq	_wm8350_irq_chip@GOTPCREL(%rip), %r12
	movq	_IRQ_NOREQUEST@GOTPCREL(%rip), %r14
	movq	_IRQ_NOPROBE@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_irq_set_chip_data
	movq	_handle_edge_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movq	%r12, %rsi
	callq	_irq_set_chip_and_handler
	movl	%ebx, %edi
	movl	$1, %esi
	callq	_irq_set_nested_thread
	movl	(%r15), %esi
	orl	(%r14), %esi
	movl	%ebx, %edi
	callq	_irq_clear_status_flags
	incl	%ebx
	movq	_wm8350_irqs@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	_ARRAY_SIZE
	addl	4(%r13), %eax
	cmpl	%eax, %ebx
	jl	LBB0_16
LBB0_17:
	movq	_wm8350_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %r8
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	xorl	%esi, %esi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r13, %r9
	callq	_request_threaded_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	8(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_err
LBB0_19:
	movq	_WM8350_SYSTEM_INTERRUPTS_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_wm8350_reg_write
LBB0_20:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No interrupt support, no core IRQ\n"

	.comm	_WM8350_SYSTEM_INTERRUPTS_MASK,8,3 ## @WM8350_SYSTEM_INTERRUPTS_MASK
	.comm	_WM8350_INT_STATUS_1_MASK,8,3   ## @WM8350_INT_STATUS_1_MASK
	.comm	_wm8350_irqs,8,3                ## @wm8350_irqs
L_.str.1:                               ## @.str.1
	.asciz	"Allocating irqs failed with %d\n"

	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_WM8350_SYSTEM_CONTROL_1,4,2    ## @WM8350_SYSTEM_CONTROL_1
	.comm	_WM8350_IRQ_POL,4,2             ## @WM8350_IRQ_POL
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_wm8350_irq_chip,4,2            ## @wm8350_irq_chip
	.comm	_handle_edge_irq,4,2            ## @handle_edge_irq
	.comm	_IRQ_NOREQUEST,4,2              ## @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ## @IRQ_NOPROBE
	.comm	_wm8350_irq,4,2                 ## @wm8350_irq
L_.str.2:                               ## @.str.2
	.asciz	"wm8350"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wm8350_irq_init                ; -- Begin function wm8350_irq_init
	.p2align	2
_wm8350_irq_init:                       ; @wm8350_irq_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_6
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x24, _WM8350_SYSTEM_INTERRUPTS_MASK@GOTPAGE
Lloh4:
	ldr	x24, [x24, _WM8350_SYSTEM_INTERRUPTS_MASK@GOTPAGEOFF]
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
	ldr	x0, [x19, #16]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x22, #0
Lloh5:
	adrp	x25, _WM8350_INT_STATUS_1_MASK@GOTPAGE
Lloh6:
	ldr	x25, [x25, _WM8350_INT_STATUS_1_MASK@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x1, x22, x8
	mov	x0, x19
	mov	w2, #65535
	bl	_wm8350_reg_write
	ldr	x8, [x25]
	add	x1, x22, x8
	mov	x0, x19
	bl	_wm8350_reg_read
	ldr	x8, [x19, #16]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	mov	x0, x8
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
	add	x0, x19, #12
	bl	_mutex_init
	str	w20, [x19]
	cbz	x21, LBB0_7
; %bb.5:
	ldr	w8, [x21]
	cmp	w8, #0
	csinv	w22, w8, wzr, gt
	b	LBB0_8
LBB0_6:
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_20
LBB0_7:
	mov	w22, #-1
LBB0_8:
Lloh9:
	adrp	x25, _wm8350_irqs@GOTPAGE
Lloh10:
	ldr	x25, [x25, _wm8350_irqs@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	bl	_irq_alloc_descs
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x19, #4]
	tbnz	w0, #31, LBB0_12
; %bb.9:
	cbz	x21, LBB0_13
; %bb.10:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_13
; %bb.11:
Lloh11:
	adrp	x8, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
Lloh14:
	adrp	x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGE
Lloh15:
	ldr	x8, [x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _WM8350_IRQ_POL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _WM8350_IRQ_POL@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_set_bits
	b	LBB0_14
LBB0_12:
	ldr	w8, [x19, #8]
	str	x0, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_dev_warn
	mov	w20, #0
	b	LBB0_20
LBB0_13:
Lloh22:
	adrp	x8, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh24:
	ldr	w21, [x8]
Lloh25:
	adrp	x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM8350_SYSTEM_CONTROL_1@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _WM8350_IRQ_POL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _WM8350_IRQ_POL@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_wm8350_clear_bits
LBB0_14:
	orr	w21, w21, w23
	ldr	w22, [x19, #4]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	cmp	w22, w8
	b.ge	LBB0_17
; %bb.15:
Lloh31:
	adrp	x26, _handle_edge_irq@GOTPAGE
Lloh32:
	ldr	x26, [x26, _handle_edge_irq@GOTPAGEOFF]
Lloh33:
	adrp	x23, _wm8350_irq_chip@GOTPAGE
Lloh34:
	ldr	x23, [x23, _wm8350_irq_chip@GOTPAGEOFF]
Lloh35:
	adrp	x27, _IRQ_NOREQUEST@GOTPAGE
Lloh36:
	ldr	x27, [x27, _IRQ_NOREQUEST@GOTPAGEOFF]
Lloh37:
	adrp	x28, _IRQ_NOPROBE@GOTPAGE
Lloh38:
	ldr	x28, [x28, _IRQ_NOPROBE@GOTPAGEOFF]
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_irq_set_chip_data
	ldr	w2, [x26]
	mov	x0, x22
	mov	x1, x23
	bl	_irq_set_chip_and_handler
	mov	x0, x22
	mov	w1, #1
	bl	_irq_set_nested_thread
	ldr	w8, [x27]
	ldr	w9, [x28]
	orr	w1, w9, w8
	mov	x0, x22
	bl	_irq_clear_status_flags
	add	w22, w22, #1
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	ldr	w8, [x19, #4]
	add	w8, w8, w0
	cmp	w22, w8
	b.lt	LBB0_16
LBB0_17:
Lloh39:
	adrp	x8, _wm8350_irq@GOTPAGE
Lloh40:
	ldr	x8, [x8, _wm8350_irq@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
Lloh42:
	adrp	x4, l_.str.2@PAGE
Lloh43:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, #0
	mov	x3, x21
	mov	x5, x19
	bl	_request_threaded_irq
	mov	x20, x0
	cbz	w0, LBB0_19
; %bb.18:
	ldr	w0, [x19, #8]
Lloh44:
	adrp	x1, l_.str.3@PAGE
Lloh45:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_19:
	ldr	x1, [x24]
	mov	x0, x19
	mov	w2, #0
	bl	_wm8350_reg_write
LBB0_20:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No interrupt support, no core IRQ\n"

	.comm	_WM8350_SYSTEM_INTERRUPTS_MASK,8,3 ; @WM8350_SYSTEM_INTERRUPTS_MASK
	.comm	_WM8350_INT_STATUS_1_MASK,8,3   ; @WM8350_INT_STATUS_1_MASK
	.comm	_wm8350_irqs,8,3                ; @wm8350_irqs
l_.str.1:                               ; @.str.1
	.asciz	"Allocating irqs failed with %d\n"

	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_WM8350_SYSTEM_CONTROL_1,4,2    ; @WM8350_SYSTEM_CONTROL_1
	.comm	_WM8350_IRQ_POL,4,2             ; @WM8350_IRQ_POL
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_wm8350_irq_chip,4,2            ; @wm8350_irq_chip
	.comm	_handle_edge_irq,4,2            ; @handle_edge_irq
	.comm	_IRQ_NOREQUEST,4,2              ; @IRQ_NOREQUEST
	.comm	_IRQ_NOPROBE,4,2                ; @IRQ_NOPROBE
	.comm	_wm8350_irq,4,2                 ; @wm8350_irq
l_.str.2:                               ; @.str.2
	.asciz	"wm8350"

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

.subsections_via_symbols
