	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bounce_bus_dma_zone_setup
_bounce_bus_dma_zone_setup:             ## @bounce_bus_dma_zone_setup
	.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, %rbx
	callq	_alloc_bounce_zone
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	16(%rbx), %r15
	movl	(%r15), %edi
	callq	_ptoa
	movq	8(%rbx), %rdi
	cmpq	%rdi, %rax
	jge	LBB0_4
## %bb.2:
	callq	_atop
	movl	%eax, %r14d
	subl	(%r15), %r14d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_alloc_bounce_pages
	cmpl	%r14d, %eax
	jge	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_4:
	movq	_BUS_DMA_MIN_ALLOC_COMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_BUS_DMA_MIN_ALLOC_COMP,4,2     ## @BUS_DMA_MIN_ALLOC_COMP
	.no_dead_strip	_bounce_bus_dma_zone_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bounce_bus_dma_zone_setup
_bounce_bus_dma_zone_setup:             ; @bounce_bus_dma_zone_setup
	.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, x0
	bl	_alloc_bounce_zone
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	x20, [x19, #16]
	ldr	w0, [x20]
	bl	_ptoa
	mov	x8, x0
	ldr	x0, [x19, #8]
	cmp	x8, x0
	b.ge	LBB0_4
; %bb.2:
	bl	_atop
	ldr	w8, [x20]
	sub	w20, w0, w8
	mov	x0, x19
	mov	x1, x20
	bl	_alloc_bounce_pages
	cmp	w0, w20
	b.ge	LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_5
LBB0_4:
	mov	w0, #0
Lloh3:
	adrp	x8, _BUS_DMA_MIN_ALLOC_COMP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BUS_DMA_MIN_ALLOC_COMP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	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	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_BUS_DMA_MIN_ALLOC_COMP,4,2     ; @BUS_DMA_MIN_ALLOC_COMP
	.no_dead_strip	_bounce_bus_dma_zone_setup
.subsections_via_symbols
