	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ena_com_close_bounce_buffer
_ena_com_close_bounce_buffer:           ## @ena_com_close_bounce_buffer
	.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, %r14
	movq	(%rdi), %rax
	movq	_ENA_ADMIN_PLACEMENT_POLICY_HOST@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_5
## %bb.1:
	cmpq	$0, 16(%r14)
	je	LBB0_4
## %bb.2:
	movl	24(%r14), %esi
	movq	%r14, %rdi
	callq	_ena_com_write_bounce_buffer_to_dev
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	leaq	32(%r14), %rdi
	callq	_ena_com_get_next_bounce_buffer
	movl	%eax, 24(%r14)
	movl	40(%r14), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_memset
LBB0_4:
	movq	$0, 16(%r14)
	movl	36(%r14), %eax
	movl	%eax, 8(%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENA_ADMIN_PLACEMENT_POLICY_HOST,8,3 ## @ENA_ADMIN_PLACEMENT_POLICY_HOST
	.no_dead_strip	_ena_com_close_bounce_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ena_com_close_bounce_buffer
_ena_com_close_bounce_buffer:           ; @ena_com_close_bounce_buffer
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _ENA_ADMIN_PLACEMENT_POLICY_HOST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ENA_ADMIN_PLACEMENT_POLICY_HOST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_ena_com_write_bounce_buffer_to_dev
	mov	x20, x0
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.4:
	add	x0, x19, #32
	bl	_ena_com_get_next_bounce_buffer
	str	w0, [x19, #24]
	ldr	w2, [x19, #40]
	mov	w1, #0
	bl	_memset
LBB0_5:
	mov	w20, #0
	str	xzr, [x19, #16]
	ldr	w8, [x19, #36]
	str	w8, [x19, #8]
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENA_ADMIN_PLACEMENT_POLICY_HOST,8,3 ; @ENA_ADMIN_PLACEMENT_POLICY_HOST
	.no_dead_strip	_ena_com_close_bounce_buffer
.subsections_via_symbols
