	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d40_alloc_mask_set
_d40_alloc_mask_set:                    ## @d40_alloc_mask_set
	.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	%r8, %rbx
	movl	%ecx, %r15d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r13
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	4(%r13), %ecx
	orl	(%r13), %ecx
	movq	_D40_ALLOC_FREE@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	(%rax), %ecx
	sete	%dl
	movl	%edx, (%rbx)
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.4:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.5:
	movslq	(%r13), %rbx
	movq	_D40_ALLOC_PHY@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	%rbx, (%rcx)
	je	LBB0_16
## %bb.6:
	cmpl	(%rax), %ebx
	jne	LBB0_8
## %bb.7:
	movq	_D40_ALLOC_LOG_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, (%r13)
LBB0_8:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_16
## %bb.9:
	movl	%r15d, %edi
	callq	_BIT
	orl	%eax, (%r13)
	jmp	LBB0_15
LBB0_1:
	movl	(%r13), %ecx
	xorl	%r12d, %r12d
	cmpl	(%rax), %ecx
	jne	LBB0_16
## %bb.2:
	cmpl	%ecx, 4(%r13)
	jne	LBB0_16
## %bb.3:
	movq	_D40_ALLOC_PHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movl	%eax, (%r13)
	jmp	LBB0_15
LBB0_10:
	movslq	4(%r13), %rbx
	movq	_D40_ALLOC_PHY@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	%rbx, (%rcx)
	je	LBB0_16
## %bb.11:
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.12:
	movq	_D40_ALLOC_LOG_FREE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, 4(%r13)
LBB0_13:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_BIT
	testl	%ebx, %eax
	jne	LBB0_16
## %bb.14:
	movl	%r15d, %edi
	callq	_BIT
	orl	%eax, 4(%r13)
LBB0_15:
	movl	$1, %r12d
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D40_ALLOC_FREE,4,2             ## @D40_ALLOC_FREE
	.comm	_D40_ALLOC_PHY,8,3              ## @D40_ALLOC_PHY
	.comm	_D40_ALLOC_LOG_FREE,8,3         ## @D40_ALLOC_LOG_FREE
	.no_dead_strip	_d40_alloc_mask_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d40_alloc_mask_set
_d40_alloc_mask_set:                    ; @d40_alloc_mask_set
	.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	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20]
	orr	w9, w9, w8
Lloh0:
	adrp	x8, _D40_ALLOC_FREE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D40_ALLOC_FREE@GOTPAGEOFF]
	ldr	w10, [x8]
	cmp	w9, w10
	cset	w9, eq
	str	w9, [x23]
	cbz	w24, LBB0_7
; %bb.1:
	cbz	w22, LBB0_10
; %bb.2:
	ldrsw	x22, [x20]
Lloh2:
	adrp	x9, _D40_ALLOC_PHY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _D40_ALLOC_PHY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x9, x22
	b.eq	LBB0_14
; %bb.3:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _D40_ALLOC_LOG_FREE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _D40_ALLOC_LOG_FREE@GOTPAGEOFF]
Lloh7:
	ldr	w22, [x8]
	str	w22, [x20]
LBB0_5:
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.ne	LBB0_14
; %bb.6:
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
	b	LBB0_16
LBB0_7:
	ldr	w9, [x20]
	ldr	w8, [x8]
	cmp	w9, w8
	b.ne	LBB0_14
; %bb.8:
	ldr	w8, [x20, #4]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.9:
Lloh8:
	adrp	x8, _D40_ALLOC_PHY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D40_ALLOC_PHY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	stp	w8, w8, [x20]
	b	LBB0_16
LBB0_10:
	ldrsw	x22, [x20, #4]
Lloh11:
	adrp	x9, _D40_ALLOC_PHY@GOTPAGE
Lloh12:
	ldr	x9, [x9, _D40_ALLOC_PHY@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x22
	b.eq	LBB0_14
; %bb.11:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_13
; %bb.12:
Lloh14:
	adrp	x8, _D40_ALLOC_LOG_FREE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _D40_ALLOC_LOG_FREE@GOTPAGEOFF]
Lloh16:
	ldr	w22, [x8]
	str	w22, [x20, #4]
LBB0_13:
	mov	x0, x21
	bl	_BIT
	tst	w0, w22
	b.eq	LBB0_15
LBB0_14:
	mov	w20, #0
	b	LBB0_17
LBB0_15:
	mov	x0, x21
	bl	_BIT
	ldr	w8, [x20, #4]
	orr	w8, w8, w0
	str	w8, [x20, #4]
LBB0_16:
	mov	w20, #1
LBB0_17:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_D40_ALLOC_FREE,4,2             ; @D40_ALLOC_FREE
	.comm	_D40_ALLOC_PHY,8,3              ; @D40_ALLOC_PHY
	.comm	_D40_ALLOC_LOG_FREE,8,3         ; @D40_ALLOC_LOG_FREE
	.no_dead_strip	_d40_alloc_mask_set
.subsections_via_symbols
