	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tegra_hsp_request_shared_irq
_tegra_hsp_request_shared_irq:          ## @tegra_hsp_request_shared_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, %r14
	movl	(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rcx
	movl	(%rcx,%rbx,4), %r12d
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r14), %r13d
	movq	_tegra_hsp_shared_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_dev_name
	movl	%r13d, %edi
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	jns	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	(%r14), %eax
	jmp	LBB0_5
LBB0_9:
	movl	%ebx, 16(%r14)
	movl	%ebx, %edi
	callq	_HSP_INT_IE
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_tegra_hsp_writel
	movl	20(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edx
	callq	_dev_dbg
	movl	(%r14), %eax
LBB0_6:
	xorl	%r15d, %r15d
	cmpl	%eax, %ebx
	jne	LBB0_8
LBB0_7:
	movl	20(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tegra_hsp_shared_irq,4,2       ## @tegra_hsp_shared_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to request interrupt: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"interrupt requested: %u\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to find available interrupt\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_tegra_hsp_request_shared_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tegra_hsp_request_shared_irq
_tegra_hsp_request_shared_irq:          ; @tegra_hsp_request_shared_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x20, #0
Lloh0:
	adrp	x25, _tegra_hsp_shared_irq@GOTPAGE
Lloh1:
	ldr	x25, [x25, _tegra_hsp_shared_irq@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, uxtw
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	w22, [x9, x20, lsl #2]
	cbz	w22, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w23, [x19, #20]
	ldr	w24, [x25]
	mov	x0, x23
	bl	_dev_name
	mov	x4, x0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
                                        ; kill: def $w0 killed $w0 def $x0
	tbz	w0, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #20]
	str	x0, [sp]
	mov	x0, x8
	mov	x1, x21
	bl	_dev_err
	ldr	w8, [x19]
	b	LBB0_2
LBB0_6:
	str	w20, [x19, #16]
	mov	x0, x20
	bl	_HSP_INT_IE
	mov	x2, x0
	mov	x0, x19
	mov	w1, #0
	bl	_tegra_hsp_writel
	ldr	w0, [x19, #20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
	ldr	w8, [x19]
LBB0_7:
	cmp	w20, w8
	b.ne	LBB0_9
LBB0_8:
	ldr	w0, [x19, #20]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_tegra_hsp_shared_irq,4,2       ; @tegra_hsp_shared_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to request interrupt: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"interrupt requested: %u\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to find available interrupt\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_tegra_hsp_request_shared_irq
.subsections_via_symbols
