	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function free_bounce_page
_free_bounce_page:                      ## @free_bounce_page
	.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	%rsi, %rbx
	movq	8(%rdi), %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rsi)
	movq	_BUS_DMA_KEEP_PG_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	andl	%eax, (%rbx)
LBB0_2:
	movq	_bounce_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	leaq	12(%r14), %rdi
	movq	_links@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_HEAD
	incl	8(%r14)
	decl	4(%r14)
	movq	_bounce_map_waitinglist@GOTPCREL(%rip), %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_reserve_bounce_pages
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	movq	_bounce_map_waitinglist@GOTPCREL(%rip), %rdi
	callq	_STAILQ_REMOVE_HEAD
	movl	(%r15), %edx
	movq	_bounce_map_callbacklist@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_TAIL
	movq	_busdma_swi_pending@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	incl	(%r14)
	movq	_vm_ih@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_swi_sched
LBB0_5:
	movq	_bounce_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_DMA_KEEP_PG_OFFSET,4,2     ## @BUS_DMA_KEEP_PG_OFFSET
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_bounce_lock,4,2                ## @bounce_lock
	.comm	_links,4,2                      ## @links
	.comm	_bounce_map_waitinglist,4,2     ## @bounce_map_waitinglist
	.comm	_bounce_map_callbacklist,4,2    ## @bounce_map_callbacklist
	.comm	_busdma_swi_pending,4,2         ## @busdma_swi_pending
	.comm	_vm_ih,4,2                      ## @vm_ih
	.no_dead_strip	_free_bounce_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function free_bounce_page
lCPI0_0:
	.long	4294967295                      ; 0xffffffff
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_free_bounce_page:                      ; @free_bounce_page
	.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	x19, x1
	ldr	x20, [x0, #8]
	stp	xzr, xzr, [x1, #8]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BUS_DMA_KEEP_PG_OFFSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BUS_DMA_KEEP_PG_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mvn	w8, w8
	ldr	d0, [x19]
	dup.2s	v1, w8
	and.8b	v0, v0, v1
	str	d0, [x19]
LBB0_2:
Lloh6:
	adrp	x0, _bounce_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _bounce_lock@GOTPAGEOFF]
	bl	_mtx_lock
	add	x0, x20, #12
Lloh8:
	adrp	x21, _links@GOTPAGE
Lloh9:
	ldr	x21, [x21, _links@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x1, x19
	bl	_STAILQ_INSERT_HEAD
	ldur	d0, [x20, #4]
Lloh10:
	adrp	x8, lCPI0_0@PAGE
Lloh11:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
Lloh12:
	adrp	x0, _bounce_map_waitinglist@GOTPAGE
Lloh13:
	ldr	x0, [x0, _bounce_map_waitinglist@GOTPAGEOFF]
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_5
; %bb.3:
	mov	x19, x0
	ldr	w0, [x0]
	mov	w22, #1
	mov	x1, x19
	mov	w2, #1
	bl	_reserve_bounce_pages
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w1, [x21]
Lloh14:
	adrp	x0, _bounce_map_waitinglist@GOTPAGE
Lloh15:
	ldr	x0, [x0, _bounce_map_waitinglist@GOTPAGEOFF]
	bl	_STAILQ_REMOVE_HEAD
	ldr	w2, [x21]
Lloh16:
	adrp	x0, _bounce_map_callbacklist@GOTPAGE
Lloh17:
	ldr	x0, [x0, _bounce_map_callbacklist@GOTPAGEOFF]
	mov	x1, x19
	bl	_STAILQ_INSERT_TAIL
Lloh18:
	adrp	x8, _busdma_swi_pending@GOTPAGE
Lloh19:
	ldr	x8, [x8, _busdma_swi_pending@GOTPAGEOFF]
Lloh20:
	str	w22, [x8]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
Lloh21:
	adrp	x8, _vm_ih@GOTPAGE
Lloh22:
	ldr	x8, [x8, _vm_ih@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_swi_sched
LBB0_5:
Lloh24:
	adrp	x0, _bounce_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _bounce_lock@GOTPAGEOFF]
	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
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_DMA_KEEP_PG_OFFSET,4,2     ; @BUS_DMA_KEEP_PG_OFFSET
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_bounce_lock,4,2                ; @bounce_lock
	.comm	_links,4,2                      ; @links
	.comm	_bounce_map_waitinglist,4,2     ; @bounce_map_waitinglist
	.comm	_bounce_map_callbacklist,4,2    ; @bounce_map_callbacklist
	.comm	_busdma_swi_pending,4,2         ; @busdma_swi_pending
	.comm	_vm_ih,4,2                      ; @vm_ih
	.no_dead_strip	_free_bounce_page
.subsections_via_symbols
