	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_can_reuse_rx_page
_ice_can_reuse_rx_page:                 ## @ice_can_reuse_rx_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r12d
	movq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_ice_page_is_reserved
	movl	%eax, %edi
	callq	_unlikely
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_page_count
	subl	%r12d, %eax
	xorl	%edi, %edi
	cmpl	$2, %eax
	setae	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	xorl	%edi, %edi
	cmpl	$1, %r12d
	sete	%dil
	callq	_unlikely
	movl	$1, %r15d
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_USHRT_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	decl	%esi
	movq	%r14, %rdi
	callq	_page_ref_add
	movl	(%r12), %eax
	movl	%eax, (%rbx)
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_USHRT_MAX,4,2                  ## @USHRT_MAX
	.comm	_ICE_RXBUF_2048,4,2             ## @ICE_RXBUF_2048
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_ice_can_reuse_rx_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_can_reuse_rx_page
_ice_can_reuse_rx_page:                 ; @ice_can_reuse_rx_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, x0
	ldr	w21, [x0]
	ldr	x20, [x0, #8]
	mov	x0, x20
	bl	_ice_page_is_reserved
	bl	_unlikely
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_page_count
	sub	w8, w0, w21
	cmp	w8, #1
	cset	w0, hi
	bl	_unlikely
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
LBB0_3:
	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
	ret
LBB0_4:
	cmp	w21, #1
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.5:
Lloh0:
	adrp	x21, _USHRT_MAX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _USHRT_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w1, w8, #1
	mov	x0, x20
	bl	_page_ref_add
	ldr	w8, [x21]
	str	w8, [x19]
LBB0_6:
	mov	w0, #1
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_USHRT_MAX,4,2                  ; @USHRT_MAX
	.comm	_ICE_RXBUF_2048,4,2             ; @ICE_RXBUF_2048
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_ice_can_reuse_rx_page
.subsections_via_symbols
