	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ti_sci_inta_free_irq
_ti_sci_inta_free_irq:                  ## @ti_sci_inta_free_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	12(%rdi), %esi
	callq	_to_vint_desc
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	16(%r14), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_HWIRQ_TO_DEVID
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %edi
	callq	_HWIRQ_TO_IRQID
	movq	8(%r14), %rcx
	movl	(%rcx), %ecx
	movl	4(%r15), %r8d
	movl	8(%rbx), %r9d
	movl	12(%rbx), %edx
	movl	%edx, (%rsp)
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	*-56(%rbp)                      ## 8-byte Folded Reload
	movl	12(%rbx), %edi
	movl	(%r15), %esi
	callq	_clear_bit
	movl	4(%r14), %edi
	movl	8(%rbx), %esi
	callq	_ti_sci_release_resource
	movq	_TI_SCI_RESOURCE_NULL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	$0, (%rbx)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ti_sci_inta_free_parent_irq
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TI_SCI_RESOURCE_NULL,4,2       ## @TI_SCI_RESOURCE_NULL
	.no_dead_strip	_ti_sci_inta_free_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ti_sci_inta_free_irq
_ti_sci_inta_free_irq:                  ; @ti_sci_inta_free_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	ldr	w1, [x0, #12]
	bl	_to_vint_desc
	mov	x21, x0
	ldr	x8, [x0, #8]
	ldr	x22, [x8]
	mov	x0, x22
	bl	_mutex_lock
	ldr	x23, [x22, #16]
	ldr	x25, [x23]
	mov	x0, x20
	bl	_HWIRQ_TO_DEVID
	mov	x24, x0
	mov	x0, x20
	bl	_HWIRQ_TO_IRQID
	mov	x2, x0
	ldr	x8, [x22, #8]
	ldr	w3, [x8]
	ldr	w4, [x21, #4]
	ldp	w5, w6, [x19, #8]
	mov	x0, x23
	mov	x1, x24
	blr	x25
	ldr	w0, [x19, #12]
	ldr	w1, [x21]
	bl	_clear_bit
	ldr	w0, [x22, #4]
	ldr	w1, [x19, #8]
	bl	_ti_sci_release_resource
Lloh0:
	adrp	x8, _TI_SCI_RESOURCE_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TI_SCI_RESOURCE_NULL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	str	xzr, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_ti_sci_inta_free_parent_irq
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TI_SCI_RESOURCE_NULL,4,2       ; @TI_SCI_RESOURCE_NULL
	.no_dead_strip	_ti_sci_inta_free_irq
.subsections_via_symbols
