	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_ops_alloc_addresses
_dma_ops_alloc_addresses:               ## @dma_ops_alloc_addresses
	.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	%rcx, %r13
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	16(%rsi), %r9
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_dma_ops_area_alloc
	movq	%rax, %rbx
	cmpq	$-1, %rax
	jne	LBB0_2
## %bb.1:
	movq	$0, 16(%r14)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	xorl	%r9d, %r9d
	callq	_dma_ops_area_alloc
	movq	%rax, %rbx
	movl	$1, (%r14)
LBB0_2:
	xorl	%edi, %edi
	cmpq	$-1, %rbx
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_bad_dma_address@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
LBB0_4:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	addq	%rbx, %r15
	xorl	%edi, %edi
	cmpq	8(%r14), %r15
	seta	%dil
	callq	_WARN_ON
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bad_dma_address,8,3            ## @bad_dma_address
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_dma_ops_alloc_addresses
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_ops_alloc_addresses
_dma_ops_alloc_addresses:               ; @dma_ops_alloc_addresses
	.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	x21, x4
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x24, x0
	ldr	x5, [x1, #16]
	bl	_dma_ops_area_alloc
	mov	x23, x0
	cmn	x0, #1
	b.ne	LBB0_2
; %bb.1:
	str	xzr, [x19, #16]
	mov	x0, x24
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	mov	x4, x21
	mov	x5, #0
	bl	_dma_ops_area_alloc
	mov	x23, x0
	mov	w8, #1
	str	w8, [x19]
LBB0_2:
	cmn	x23, #1
	cset	w0, eq
	bl	_unlikely
Lloh0:
	adrp	x8, _bad_dma_address@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bad_dma_address@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, #0
	csel	x21, x23, x8, eq
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mul	w8, w8, w20
	ldr	x9, [x19, #8]
	add	x8, x21, x8
	cmp	x8, x9
	cset	w0, hi
	bl	_WARN_ON
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_bad_dma_address,8,3            ; @bad_dma_address
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_dma_ops_alloc_addresses
.subsections_via_symbols
