	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dbdma_descriptor_ring
_alloc_dbdma_descriptor_ring:           ## @alloc_dbdma_descriptor_ring
	.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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %rbx
	leal	12(,%rdx,4), %eax
	movl	%eax, (%rsi)
	movl	(%rdi), %edi
	callq	_macio_get_pci_dev
	movl	(%rbx), %esi
	leaq	24(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %edx
	xorl	%r14d, %r14d
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_memset
	movq	8(%rbx), %rdi
	callq	_DBDMA_ALIGN
	movq	%rax, 16(%rbx)
	addq	24(%rbx), %rax
	subq	8(%rbx), %rax
	movq	%rax, 32(%rbx)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_alloc_dbdma_descriptor_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_dbdma_descriptor_ring
_alloc_dbdma_descriptor_ring:           ; @alloc_dbdma_descriptor_ring
	.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
	mov	x19, x1
	lsl	w8, w2, #2
	add	w8, w8, #12
	str	w8, [x1]
	ldr	w0, [x0]
	bl	_macio_get_pci_dev
	ldr	w1, [x19]
	add	x2, x19, #24
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w2, [x19]
	mov	w1, #0
	bl	_memset
	ldr	x0, [x19, #8]
	bl	_DBDMA_ALIGN
	mov	x8, x0
	mov	w0, #0
	str	x8, [x19, #16]
	ldr	x9, [x19, #24]
	ldr	x10, [x19, #8]
	add	x8, x9, x8
	sub	x8, x8, x10
	str	x8, [x19, #32]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_alloc_dbdma_descriptor_ring
.subsections_via_symbols
