	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function odmi_irq_domain_alloc
_odmi_irq_domain_alloc:                 ## @odmi_irq_domain_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_odmis_bm_lock@GOTPCREL(%rip), %rdi
	callq	_spin_lock
	movq	_odmis_bm@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_NODMIS_PER_FRAME@GOTPCREL(%rip), %r14
	movq	_odmis_count@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	imull	(%r14), %esi
	callq	_find_first_zero_bit
	movl	(%rbx), %ecx
	imull	(%r14), %ecx
	cmpl	%ecx, %eax
	jb	LBB0_2
## %bb.1:
	movq	_odmis_bm_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %edi
	callq	_odmi_irq_domain_alloc.cold.1
	xorl	%eax, %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function odmi_irq_domain_alloc.cold.1
_odmi_irq_domain_alloc.cold.1:          ## @odmi_irq_domain_alloc.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_odmis_bm@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	___set_bit
	movq	_odmis_bm_lock@GOTPCREL(%rip), %rdi
	callq	_spin_unlock
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_odmis_bm_lock,4,2              ## @odmis_bm_lock
	.comm	_odmis_bm,4,2                   ## @odmis_bm
	.comm	_NODMIS_PER_FRAME,4,2           ## @NODMIS_PER_FRAME
	.comm	_odmis_count,4,2                ## @odmis_count
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_odmis,8,3                      ## @odmis
	.comm	_NODMIS_SHIFT,4,2               ## @NODMIS_SHIFT
	.comm	_NODMIS_MASK,4,2                ## @NODMIS_MASK
	.comm	_GIC_SPI,4,2                    ## @GIC_SPI
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ## @IRQ_TYPE_EDGE_RISING
	.comm	_odmi_irq_chip,4,2              ## @odmi_irq_chip
	.no_dead_strip	_odmi_irq_domain_alloc
.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_alloc
_odmi_irq_domain_alloc:                 ; @odmi_irq_domain_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _odmis_bm_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _odmis_bm_lock@GOTPAGEOFF]
	bl	_spin_lock
Lloh2:
	adrp	x8, _odmis_bm@GOTPAGE
Lloh3:
	ldr	x8, [x8, _odmis_bm@GOTPAGEOFF]
Lloh4:
	adrp	x19, _NODMIS_PER_FRAME@GOTPAGE
Lloh5:
	ldr	x19, [x19, _NODMIS_PER_FRAME@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	w8, [x19]
Lloh7:
	adrp	x20, _odmis_count@GOTPAGE
Lloh8:
	ldr	x20, [x20, _odmis_count@GOTPAGEOFF]
	ldr	w9, [x20]
	mul	w1, w9, w8
	bl	_find_first_zero_bit
	ldr	w8, [x19]
	ldr	w9, [x20]
	mul	w8, w9, w8
	cmp	w0, w8
	b.lo	LBB0_2
; %bb.1:
Lloh9:
	adrp	x0, _odmis_bm_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _odmis_bm_lock@GOTPAGEOFF]
	bl	_spin_unlock
Lloh11:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	bl	_odmi_irq_domain_alloc.cold.1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function odmi_irq_domain_alloc.cold.1
_odmi_irq_domain_alloc.cold.1:          ; @odmi_irq_domain_alloc.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh14:
	adrp	x8, _odmis_bm@GOTPAGE
Lloh15:
	ldr	x8, [x8, _odmis_bm@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	___set_bit
Lloh17:
	adrp	x0, _odmis_bm_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _odmis_bm_lock@GOTPAGEOFF]
	bl	_spin_unlock
	brk	#0x1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_odmis_bm_lock,4,2              ; @odmis_bm_lock
	.comm	_odmis_bm,4,2                   ; @odmis_bm
	.comm	_NODMIS_PER_FRAME,4,2           ; @NODMIS_PER_FRAME
	.comm	_odmis_count,4,2                ; @odmis_count
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_odmis,8,3                      ; @odmis
	.comm	_NODMIS_SHIFT,4,2               ; @NODMIS_SHIFT
	.comm	_NODMIS_MASK,4,2                ; @NODMIS_MASK
	.comm	_GIC_SPI,4,2                    ; @GIC_SPI
	.comm	_IRQ_TYPE_EDGE_RISING,4,2       ; @IRQ_TYPE_EDGE_RISING
	.comm	_odmi_irq_chip,4,2              ; @odmi_irq_chip
	.no_dead_strip	_odmi_irq_domain_alloc
.subsections_via_symbols
