	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function odmi_irq_domain_free
_odmi_irq_domain_free:                  ## @odmi_irq_domain_free
	.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
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_irq_domain_get_irq_data
	movq	%rax, %r15
	movl	(%rax), %esi
	movq	_odmis_count@GOTPCREL(%rip), %rax
	movq	_NODMIS_PER_FRAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	(%rax), %ecx
	cmpl	%ecx, %esi
	jge	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_irq_domain_free_irqs_parent
	movq	_odmis_bm_lock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	(%r15), %edi
	movq	_odmis_bm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___clear_bit
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_odmis_count,4,2                ## @odmis_count
	.comm	_NODMIS_PER_FRAME,4,2           ## @NODMIS_PER_FRAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to teardown msi. Invalid hwirq %lu\n"

	.comm	_odmis_bm_lock,4,2              ## @odmis_bm_lock
	.comm	_odmis_bm,4,2                   ## @odmis_bm
	.no_dead_strip	_odmi_irq_domain_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function odmi_irq_domain_free
_odmi_irq_domain_free:                  ; @odmi_irq_domain_free
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_irq_domain_get_irq_data
	ldr	w1, [x0]
Lloh0:
	adrp	x8, _odmis_count@GOTPAGE
Lloh1:
	ldr	x8, [x8, _odmis_count@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NODMIS_PER_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NODMIS_PER_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	mul	w8, w9, w8
	cmp	w1, w8
	b.ge	LBB0_2
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_irq_domain_free_irqs_parent
Lloh6:
	adrp	x19, _odmis_bm_lock@GOTPAGE
Lloh7:
	ldr	x19, [x19, _odmis_bm_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_spin_lock
	ldr	w0, [x20]
Lloh8:
	adrp	x8, _odmis_bm@GOTPAGE
Lloh9:
	ldr	x8, [x8, _odmis_bm@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	___clear_bit
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock
LBB0_2:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_odmis_count,4,2                ; @odmis_count
	.comm	_NODMIS_PER_FRAME,4,2           ; @NODMIS_PER_FRAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to teardown msi. Invalid hwirq %lu\n"

	.comm	_odmis_bm_lock,4,2              ; @odmis_bm_lock
	.comm	_odmis_bm,4,2                   ; @odmis_bm
	.no_dead_strip	_odmi_irq_domain_free
.subsections_via_symbols
