	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ksz_alloc_desc
_ksz_alloc_desc:                        ## @ksz_alloc_desc
	.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	%rdi, %rbx
	movl	76(%rdi), %eax
	imull	72(%rdi), %eax
	movl	40(%rdi), %edi
	movl	52(%rbx), %esi
	imull	48(%rbx), %esi
	addl	%eax, %esi
	movq	_DESC_ALIGNMENT@GOTPCREL(%rip), %r14
	addl	(%r14), %esi
	movl	%esi, (%rbx)
	leaq	24(%rbx), %rdx
	callq	_pci_zalloc_consistent
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	movl	(%r14), %esi
	cltd
	idivl	%esi
	subl	%edx, %esi
	testl	%edx, %edx
	cmovel	%edx, %esi
	leaq	72(%rbx), %rdi
	movslq	%esi, %rax
	leaq	(%rcx,%rax,4), %rcx
	movq	%rcx, 16(%rbx)
	addq	24(%rbx), %rax
	movq	%rax, 8(%rbx)
	movq	%rcx, 88(%rbx)
	movq	%rax, 80(%rbx)
	movslq	76(%rbx), %rdx
	movslq	72(%rbx), %rsi
	imulq	%rdx, %rsi
	leaq	(%rcx,%rsi,4), %rcx
	movq	%rcx, 64(%rbx)
	addq	%rax, %rsi
	movq	%rsi, 56(%rbx)
	xorl	%esi, %esi
	callq	_ksz_alloc_soft_desc
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	addq	$48, %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ksz_alloc_soft_desc
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	setne	%al
	jmp	LBB0_4
LBB0_1:
	movl	$0, (%rbx)
	movl	$1, %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DESC_ALIGNMENT,4,2             ## @DESC_ALIGNMENT
	.no_dead_strip	_ksz_alloc_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ksz_alloc_desc
_ksz_alloc_desc:                        ; @ksz_alloc_desc
	.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, x0
	mov	x21, x0
	ldr	w8, [x21, #72]!
	ldr	w9, [x0, #76]
	mul	w8, w9, w8
	mov	x19, x0
	ldr	w9, [x19, #48]!
	ldr	w10, [x0, #52]
Lloh0:
	adrp	x22, _DESC_ALIGNMENT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DESC_ALIGNMENT@GOTPAGEOFF]
	madd	w8, w10, w9, w8
	ldr	w9, [x22]
	add	w1, w8, w9
	str	w1, [x0]
	ldr	w0, [x0, #40]
	add	x2, x20, #24
	bl	_pci_zalloc_consistent
	str	x0, [x20, #32]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x22]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	sub	w8, w8, w9
	cmp	w9, #0
	csel	w8, wzr, w8, eq
	add	x9, x0, w8, sxtw #2
	ldr	x10, [x20, #24]
	add	x8, x10, w8, sxtw
	stp	x8, x9, [x20, #8]
	stp	x8, x9, [x20, #80]
	ldpsw	x11, x10, [x20, #72]
	mul	x10, x11, x10
	add	x9, x9, x10, lsl #2
	add	x8, x8, x10
	stp	x8, x9, [x20, #56]
	mov	x0, x21
	mov	w1, #0
	bl	_ksz_alloc_soft_desc
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #1
	b	LBB0_5
LBB0_3:
	str	wzr, [x20]
	mov	w0, #1
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	mov	w1, #1
	bl	_ksz_alloc_soft_desc
	cmp	x0, #0
	cset	w0, ne
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DESC_ALIGNMENT,4,2             ; @DESC_ALIGNMENT
	.no_dead_strip	_ksz_alloc_desc
.subsections_via_symbols
