	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_gas_alloc_entry           ## -- Begin function dmar_gas_alloc_entry
	.p2align	4, 0x90
_dmar_gas_alloc_entry:                  ## @dmar_gas_alloc_entry
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_DMAR_PGF_WAITOK@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	notl	%eax
	xorl	%edi, %edi
	testl	%esi, %eax
	sete	%dil
	movslq	%esi, %rbx
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	_dmar_map_entry_zone@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r15), %ebx
	jne	LBB0_1
## %bb.2:
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	_M_ZERO@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_uma_zalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r14, (%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atomic_add_int
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMAR_PGF_WAITOK,4,2            ## @DMAR_PGF_WAITOK
	.comm	_dmar_map_entry_zone,4,2        ## @dmar_map_entry_zone
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_M_ZERO,4,2                     ## @M_ZERO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dmar_gas_alloc_entry           ; -- Begin function dmar_gas_alloc_entry
	.p2align	2
_dmar_gas_alloc_entry:                  ; @dmar_gas_alloc_entry
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _DMAR_PGF_WAITOK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DMAR_PGF_WAITOK@GOTPAGEOFF]
	ldr	w8, [x21]
	bics	wzr, w1, w8
	cset	w0, eq
	sxtw	x1, w20
	bl	_KASSERT
Lloh2:
	adrp	x8, _dmar_map_entry_zone@GOTPAGE
Lloh3:
	ldr	x8, [x8, _dmar_map_entry_zone@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w8, [x21]
Lloh5:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh7:
	adrp	x10, _M_NOWAIT@GOTPAGE
Lloh8:
	ldr	x10, [x10, _M_NOWAIT@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh10:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_uma_zalloc
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	str	x19, [x20]
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_add_int
LBB0_2:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DMAR_PGF_WAITOK,4,2            ; @DMAR_PGF_WAITOK
	.comm	_dmar_map_entry_zone,4,2        ; @dmar_map_entry_zone
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_M_ZERO,4,2                     ; @M_ZERO
.subsections_via_symbols
