	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fire_alloc_msix
_fire_alloc_msix:                       ## @fire_alloc_msix
	.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	%rdx, %r14
	callq	_device_get_softc
	movq	%rax, %r13
	movq	_FIRE_MSIX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_12
## %bb.1:
	movq	%r13, %r15
	addq	$28, %r15
	movq	%r15, %rdi
	callq	_mtx_lock
	movl	4(%r13), %eax
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_5
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	36(%r13), %edi
	movl	%ebx, %esi
	callq	_isclr
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	4(%r13), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_5:
	xorl	%r12d, %r12d
	cmpl	%eax, %ebx
	je	LBB0_11
	jmp	LBB0_7
LBB0_3:
	movl	4(%r13), %eax
	movl	%ebx, %r12d
	cmpl	%eax, %ebx
	jne	LBB0_7
LBB0_11:
	movq	%r15, %rdi
	callq	_mtx_unlock
LBB0_12:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%r13), %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	decl	%ebx
	movl	32(%r13), %edi
	movl	%ebx, %esi
	callq	_isclr
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movl	36(%r13), %edi
	movl	%r12d, %esi
	callq	_setbit
	movl	32(%r13), %edi
	movl	%ebx, %esi
	callq	_setbit
	movq	16(%r13), %rax
	movl	%ebx, %ecx
	movl	%r12d, (%rax,%rcx,4)
	addl	24(%r13), %ebx
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	callq	_mtx_unlock
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_FIRE_MSIX,4,2                  ## @FIRE_MSIX
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_fire_alloc_msix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fire_alloc_msix
_fire_alloc_msix:                       ; @fire_alloc_msix
	.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	x19, x2
	bl	_device_get_softc
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _FIRE_MSIX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FIRE_MSIX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	add	x21, x0, #28
	mov	x0, x21
	bl	_mtx_lock
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #36]
	mov	x1, x23
	bl	_isclr
	cbnz	x0, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	ldr	w8, [x20, #4]
	cmp	w23, w8
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w23, #0
LBB0_6:
	mov	w22, #0
	cmp	w23, w8
	b.eq	LBB0_8
	b	LBB0_11
LBB0_7:
	ldr	w8, [x20, #4]
	mov	x22, x23
	cmp	w23, w8
	b.ne	LBB0_11
LBB0_8:
	mov	x0, x21
	bl	_mtx_unlock
LBB0_9:
Lloh3:
	adrp	x8, _ENXIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
LBB0_10:
	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_11:
	ldr	w23, [x20, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	subs	w23, w23, #1
	b.lt	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w0, [x20, #32]
	mov	x1, x23
	bl	_isclr
	cbz	x0, LBB0_12
; %bb.14:
	ldr	w0, [x20, #36]
	mov	x1, x22
	bl	_setbit
	ldr	w0, [x20, #32]
	mov	x1, x23
	bl	_setbit
	ldr	x8, [x20, #16]
	str	w22, [x8, w23, uxtw #2]
	ldr	w8, [x20, #24]
	add	w8, w8, w23
	str	w8, [x19]
	mov	x0, x21
	bl	_mtx_unlock
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FIRE_MSIX,4,2                  ; @FIRE_MSIX
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_fire_alloc_msix
.subsections_via_symbols
