	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function talitos_probe_irq
_talitos_probe_irq:                     ## @talitos_probe_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	%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, %r15
	movq	(%rdi), %r12
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_has_ftr_sec1
	movl	%eax, %r14d
	xorl	%r13d, %r13d
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.3:
	movq	_talitos1_interrupt_4ch@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_dev_driver_string
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_6:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_irq_of_parse_and_map
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rcx
	movq	%rax, 8(%rcx)
	movq	(%rdx), %rax
	cmpq	$0, 8(%rax)
	movq	(%rax), %rbx
	je	LBB0_7
## %bb.8:
	movq	_talitos2_interrupt_ch0_2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_dev_driver_string
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_request_irq
	movl	%eax, %r12d
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_irq_dispose_mapping
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movl	%r12d, %r13d
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_talitos2_interrupt_4ch@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_9:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	8(%rax), %r14
	movq	_talitos2_interrupt_ch1_3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_driver_string
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%eax, %ecx
	movq	%r15, %r8
	callq	_request_irq
	testl	%eax, %eax
	je	LBB0_12
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	(%r12), %rax
	movq	8(%rax), %rdi
	callq	_irq_dispose_mapping
	movq	(%r12), %rax
	movq	$0, 8(%rax)
	movl	%ebx, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map irq\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_talitos1_interrupt_4ch,4,2     ## @talitos1_interrupt_4ch
	.comm	_talitos2_interrupt_4ch,4,2     ## @talitos2_interrupt_4ch
	.comm	_talitos2_interrupt_ch0_2,4,2   ## @talitos2_interrupt_ch0_2
	.comm	_talitos2_interrupt_ch1_3,4,2   ## @talitos2_interrupt_ch1_3
L_.str.1:                               ## @.str.1
	.asciz	"failed to request secondary irq\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to request primary irq\n"

	.no_dead_strip	_talitos_probe_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function talitos_probe_irq
_talitos_probe_irq:                     ; @talitos_probe_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x21, [x0]
	bl	_dev_get_drvdata
	mov	x19, x0
	bl	_has_ftr_sec1
	mov	x23, x0
	mov	x0, x21
	mov	w1, #0
	bl	_irq_of_parse_and_map
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x22, [x8]
	cbz	x22, LBB0_4
; %bb.1:
	cbz	w23, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _talitos1_interrupt_4ch@GOTPAGE
Lloh1:
	ldr	x8, [x8, _talitos1_interrupt_4ch@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_dev_driver_string
	mov	x3, x0
	mov	x0, x22
	mov	x1, x21
LBB0_3:
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_7
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_5:
	mov	x0, x21
	mov	w1, #1
	bl	_irq_of_parse_and_map
	ldr	x8, [x19]
	str	x0, [x8, #8]
	ldr	x8, [x19]
	ldp	x21, x9, [x8]
	cbz	x9, LBB0_9
; %bb.6:
Lloh8:
	adrp	x8, _talitos2_interrupt_ch0_2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _talitos2_interrupt_ch0_2@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_driver_string
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_10
LBB0_7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_irq_dispose_mapping
	ldr	x8, [x19]
	str	xzr, [x8]
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
Lloh13:
	adrp	x8, _talitos2_interrupt_4ch@GOTPAGE
Lloh14:
	ldr	x8, [x8, _talitos2_interrupt_4ch@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_driver_string
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	b	LBB0_3
LBB0_10:
	ldr	x8, [x19]
	ldr	x21, [x8, #8]
Lloh16:
	adrp	x8, _talitos2_interrupt_ch1_3@GOTPAGE
Lloh17:
	ldr	x8, [x8, _talitos2_interrupt_ch1_3@GOTPAGEOFF]
Lloh18:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_driver_string
	mov	x3, x0
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x4, x20
	bl	_request_irq
	mov	x21, x0
	cbz	w0, LBB0_8
; %bb.11:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_irq_dispose_mapping
	ldr	x8, [x19]
	str	xzr, [x8, #8]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map irq\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_talitos1_interrupt_4ch,4,2     ; @talitos1_interrupt_4ch
	.comm	_talitos2_interrupt_4ch,4,2     ; @talitos2_interrupt_4ch
	.comm	_talitos2_interrupt_ch0_2,4,2   ; @talitos2_interrupt_ch0_2
	.comm	_talitos2_interrupt_ch1_3,4,2   ; @talitos2_interrupt_ch1_3
l_.str.1:                               ; @.str.1
	.asciz	"failed to request secondary irq\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to request primary irq\n"

	.no_dead_strip	_talitos_probe_irq
.subsections_via_symbols
