	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixp2400_msf_free_rbuf_entries
_ixp2400_msf_free_rbuf_entries:         ## @ixp2400_msf_free_rbuf_entries
	.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	_IXP2400_RX_MODE_RBUF_SIZE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_IXP2400_RX_MODE_RBUF_SIZE_64@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.1:
	movl	$1, %ebx
	movq	_IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPCREL(%rip), %r14
	movl	$134480384, %r15d               ## imm = 0x8040200
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_ixp2000_reg_write
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	cmpl	$128, %ebx
	je	LBB0_18
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$27, %ebx
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	btl	%ebx, %r15d
	jb	LBB0_5
	jmp	LBB0_4
LBB0_6:
	movq	_IXP2400_RX_MODE_RBUF_SIZE_128@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.7:
	movl	$1, %ebx
	movq	_IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPCREL(%rip), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	incl	%ebx
	cmpl	$64, %ebx
	je	LBB0_18
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %ebx
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %eax
	andl	$2147483643, %eax               ## imm = 0x7FFFFFFB
	cmpl	$9, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_ixp2000_reg_write
	jmp	LBB0_11
LBB0_12:
	movq	_IXP2400_RX_MODE_RBUF_SIZE_256@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_18
## %bb.13:
	movl	$1, %ebx
	movq	_IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPCREL(%rip), %r14
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	incl	%ebx
	cmpl	$32, %ebx
	je	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$4, %ebx
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %eax
	andl	$2147483643, %eax               ## imm = 0x7FFFFFFB
	cmpl	$2, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_ixp2000_reg_write
	jmp	LBB0_17
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_MASK,4,2 ## @IXP2400_RX_MODE_RBUF_SIZE_MASK
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_64,4,2 ## @IXP2400_RX_MODE_RBUF_SIZE_64
	.comm	_IXP2000_MSF_RBUF_ELEMENT_DONE,4,2 ## @IXP2000_MSF_RBUF_ELEMENT_DONE
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_128,4,2 ## @IXP2400_RX_MODE_RBUF_SIZE_128
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_256,4,2 ## @IXP2400_RX_MODE_RBUF_SIZE_256
	.no_dead_strip	_ixp2400_msf_free_rbuf_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixp2400_msf_free_rbuf_entries
_ixp2400_msf_free_rbuf_entries:         ; @ixp2400_msf_free_rbuf_entries
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _IXP2400_RX_MODE_RBUF_SIZE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IXP2400_RX_MODE_RBUF_SIZE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _IXP2400_RX_MODE_RBUF_SIZE_64@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IXP2400_RX_MODE_RBUF_SIZE_64@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.1:
	mov	w20, #1
Lloh6:
	adrp	x21, _IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPAGEOFF]
	mov	w22, #512
	movk	w22, #2052, lsl #16
	mov	w19, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_ixp2000_reg_write
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w19, w19, #1
	cmp	w19, #128
	b.eq	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, #27
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w20, w19
	tst	w8, w22
	b.ne	LBB0_3
	b	LBB0_2
LBB0_6:
Lloh8:
	adrp	x9, _IXP2400_RX_MODE_RBUF_SIZE_128@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IXP2400_RX_MODE_RBUF_SIZE_128@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.7:
	mov	w19, #1
	mov	w20, #65531
	movk	w20, #32767, lsl #16
Lloh11:
	adrp	x21, _IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPAGE
Lloh12:
	ldr	x21, [x21, _IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w19, w19, #1
	cmp	w19, #64
	b.eq	LBB0_18
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, #4
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	and	w8, w19, w20
	cmp	w8, #9
	b.eq	LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_ixp2000_reg_write
	b	LBB0_8
LBB0_12:
Lloh13:
	adrp	x9, _IXP2400_RX_MODE_RBUF_SIZE_256@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IXP2400_RX_MODE_RBUF_SIZE_256@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.13:
	mov	w19, #1
	mov	w20, #65531
	movk	w20, #32767, lsl #16
Lloh16:
	adrp	x21, _IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPAGE
Lloh17:
	ldr	x21, [x21, _IXP2000_MSF_RBUF_ELEMENT_DONE@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	w19, w19, #1
	cmp	w19, #32
	b.eq	LBB0_18
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w19, #4
	b.eq	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	and	w8, w19, w20
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w0, [x21]
	mov	x1, x19
	bl	_ixp2000_reg_write
	b	LBB0_14
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_MASK,4,2 ; @IXP2400_RX_MODE_RBUF_SIZE_MASK
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_64,4,2 ; @IXP2400_RX_MODE_RBUF_SIZE_64
	.comm	_IXP2000_MSF_RBUF_ELEMENT_DONE,4,2 ; @IXP2000_MSF_RBUF_ELEMENT_DONE
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_128,4,2 ; @IXP2400_RX_MODE_RBUF_SIZE_128
	.comm	_IXP2400_RX_MODE_RBUF_SIZE_256,4,2 ; @IXP2400_RX_MODE_RBUF_SIZE_256
	.no_dead_strip	_ixp2400_msf_free_rbuf_entries
.subsections_via_symbols
