	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function madera_irq_probe
_madera_irq_probe:                      ## @madera_irq_probe
	.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, %r14
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r15
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	24(%r15), %eax
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rcx
	movq	_IRQF_TRIGGER_FALLING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_8
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_7
LBB0_1:
	movl	(%r15), %edi
	callq	_irq_get_irq_data
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %rdi
	callq	_irqd_get_trigger_type
	movq	_IRQ_TYPE_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_5
## %bb.4:
	movq	_IRQF_TRIGGER_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_8:
	movq	_IRQF_TRIGGER_HIGH@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.9:
	movl	20(%r15), %edi
	movq	_MADERA_IRQ1_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MADERA_IRQ_POL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_14
LBB0_11:
	movl	(%r15), %esi
	movl	20(%r15), %edi
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %r9
	addq	$16, %r9
	movq	_madera_irq_chip@GOTPCREL(%rip), %r8
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	callq	_regmap_add_irq_chip
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_14
LBB0_2:
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, 8(%r15)
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"probe\n"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid IRQ: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IRQ_TYPE_NONE,4,2              ## @IRQ_TYPE_NONE
	.comm	_IRQF_TRIGGER_LOW,4,2           ## @IRQF_TRIGGER_LOW
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ## @IRQF_TRIGGER_FALLING
L_.str.2:                               ## @.str.2
	.asciz	"Host interrupt not level-triggered\n"

	.comm	_IRQF_TRIGGER_HIGH,4,2          ## @IRQF_TRIGGER_HIGH
	.comm	_MADERA_IRQ1_CTRL,4,2           ## @MADERA_IRQ1_CTRL
	.comm	_MADERA_IRQ_POL_MASK,4,2        ## @MADERA_IRQ_POL_MASK
L_.str.3:                               ## @.str.3
	.asciz	"Failed to set IRQ polarity: %d\n"

	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_madera_irq_chip,4,2            ## @madera_irq_chip
L_.str.4:                               ## @.str.4
	.asciz	"add_irq_chip failed: %d\n"

	.no_dead_strip	_madera_irq_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function madera_irq_probe
_madera_irq_probe:                      ; @madera_irq_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_3
; %bb.1:
	ldr	w0, [x20]
	bl	_irq_get_irq_data
	cbz	x0, LBB0_10
; %bb.2:
	bl	_irqd_get_trigger_type
Lloh2:
	adrp	x8, _IRQ_TYPE_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_TYPE_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IRQF_TRIGGER_LOW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IRQF_TRIGGER_LOW@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w8, w9, w0, eq
LBB0_3:
Lloh8:
	adrp	x9, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _IRQF_TRIGGER_FALLING@GOTPAGE
Lloh12:
	ldr	x10, [x10, _IRQF_TRIGGER_FALLING@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_5:
Lloh16:
	adrp	x9, _IRQF_TRIGGER_HIGH@GOTPAGE
Lloh17:
	ldr	x9, [x9, _IRQF_TRIGGER_HIGH@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	w0, [x20, #20]
Lloh19:
	adrp	x8, _MADERA_IRQ1_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MADERA_IRQ1_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _MADERA_IRQ_POL_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MADERA_IRQ_POL_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	w3, #0
	bl	_regmap_update_bits
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_12
LBB0_8:
	ldr	w0, [x20, #20]
	ldr	w1, [x20]
Lloh27:
	adrp	x8, _IRQF_ONESHOT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	add	x5, x20, #16
Lloh30:
	adrp	x4, _madera_irq_chip@GOTPAGE
Lloh31:
	ldr	x4, [x4, _madera_irq_chip@GOTPAGEOFF]
	mov	w3, #0
	bl	_regmap_add_irq_chip
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.9:
	str	x21, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_12
LBB0_10:
	ldr	w8, [x20]
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_11:
	mov	x0, x19
	bl	_dev_err
Lloh36:
	adrp	x8, _EINVAL@GOTPAGE
Lloh37:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	str	x19, [x20, #8]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"probe\n"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid IRQ: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IRQ_TYPE_NONE,4,2              ; @IRQ_TYPE_NONE
	.comm	_IRQF_TRIGGER_LOW,4,2           ; @IRQF_TRIGGER_LOW
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_TRIGGER_FALLING,4,2       ; @IRQF_TRIGGER_FALLING
l_.str.2:                               ; @.str.2
	.asciz	"Host interrupt not level-triggered\n"

	.comm	_IRQF_TRIGGER_HIGH,4,2          ; @IRQF_TRIGGER_HIGH
	.comm	_MADERA_IRQ1_CTRL,4,2           ; @MADERA_IRQ1_CTRL
	.comm	_MADERA_IRQ_POL_MASK,4,2        ; @MADERA_IRQ_POL_MASK
l_.str.3:                               ; @.str.3
	.asciz	"Failed to set IRQ polarity: %d\n"

	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_madera_irq_chip,4,2            ; @madera_irq_chip
l_.str.4:                               ; @.str.4
	.asciz	"add_irq_chip failed: %d\n"

	.no_dead_strip	_madera_irq_probe
.subsections_via_symbols
