	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ixgbe_set_rx_buffer_len
_ixgbe_set_rx_buffer_len:               ## @ixgbe_set_rx_buffer_len
	.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, %r12
	leaq	32(%rdi), %r14
	movq	24(%rdi), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	addl	(%rax), %r15d
	movq	_ETH_FCS_LEN@GOTPCREL(%rip), %rax
	movq	_ETH_FRAME_LEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r15d
	cmovlel	%ecx, %r15d
	addl	(%rax), %r15d
	movq	_IXGBE_MHADD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_MHADD_MFS_SHIFT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	sarl	%cl, %edx
	cmpl	%edx, %r15d
	je	LBB0_2
## %bb.1:
	movq	_IXGBE_MHADD_MFS_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	notl	%edx
	andl	%edx, %eax
	orl	%eax, %r15d
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_IXGBE_WRITE_REG
LBB0_2:
	movq	_IXGBE_HLREG0@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_IXGBE_READ_REG
	movq	_IXGBE_HLREG0_JUMBOEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_IXGBE_WRITE_REG
	cmpl	$0, 4(%r12)
	jle	LBB0_8
## %bb.3:
	xorl	%ebx, %ebx
	movq	_IXGBE_FLAG2_RSC_ENABLED@GOTPCREL(%rip), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_clear_ring_rsc_enabled
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	movslq	4(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r14), %eax
	testl	%eax, 8(%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_set_ring_rsc_enabled
	jmp	LBB0_7
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ## @ETH_FCS_LEN
	.comm	_ETH_FRAME_LEN,4,2              ## @ETH_FRAME_LEN
	.comm	_IXGBE_MHADD,4,2                ## @IXGBE_MHADD
	.comm	_IXGBE_MHADD_MFS_SHIFT,4,2      ## @IXGBE_MHADD_MFS_SHIFT
	.comm	_IXGBE_MHADD_MFS_MASK,4,2       ## @IXGBE_MHADD_MFS_MASK
	.comm	_IXGBE_HLREG0,4,2               ## @IXGBE_HLREG0
	.comm	_IXGBE_HLREG0_JUMBOEN,4,2       ## @IXGBE_HLREG0_JUMBOEN
	.comm	_IXGBE_FLAG2_RSC_ENABLED,4,2    ## @IXGBE_FLAG2_RSC_ENABLED
	.comm	_IXGBE_FCOE_JUMBO_FRAME_SIZE,4,2 ## @IXGBE_FCOE_JUMBO_FRAME_SIZE
	.comm	_IXGBE_FLAG_FCOE_ENABLED,4,2    ## @IXGBE_FLAG_FCOE_ENABLED
	.no_dead_strip	_ixgbe_set_rx_buffer_len
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ixgbe_set_rx_buffer_len
_ixgbe_set_rx_buffer_len:               ; @ixgbe_set_rx_buffer_len
	.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
	add	x20, x0, #32
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	adrp	x10, _ETH_FCS_LEN@GOTPAGE
Lloh3:
	ldr	x10, [x10, _ETH_FCS_LEN@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ETH_FRAME_LEN@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ETH_FRAME_LEN@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	add	w8, w9, w8
	cmp	w8, w11
	csel	w8, w8, w11, gt
	add	w22, w8, w10
Lloh9:
	adrp	x21, _IXGBE_MHADD@GOTPAGE
Lloh10:
	ldr	x21, [x21, _IXGBE_MHADD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_IXGBE_READ_REG
Lloh11:
	adrp	x8, _IXGBE_MHADD_MFS_SHIFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IXGBE_MHADD_MFS_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	asr	w9, w0, w8
	cmp	w22, w9
	b.eq	LBB0_2
; %bb.1:
Lloh14:
	adrp	x9, _IXGBE_MHADD_MFS_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IXGBE_MHADD_MFS_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	bic	w9, w0, w9
	lsl	w8, w22, w8
	orr	w2, w9, w8
	ldr	w1, [x21]
	mov	x0, x20
	bl	_IXGBE_WRITE_REG
LBB0_2:
Lloh17:
	adrp	x21, _IXGBE_HLREG0@GOTPAGE
Lloh18:
	ldr	x21, [x21, _IXGBE_HLREG0@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_IXGBE_READ_REG
Lloh19:
	adrp	x8, _IXGBE_HLREG0_JUMBOEN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IXGBE_HLREG0_JUMBOEN@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	orr	w2, w8, w0
	ldr	w1, [x21]
	mov	x0, x20
	bl	_IXGBE_WRITE_REG
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x20, #0
Lloh22:
	adrp	x21, _IXGBE_FLAG2_RSC_ENABLED@GOTPAGE
Lloh23:
	ldr	x21, [x21, _IXGBE_FLAG2_RSC_ENABLED@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_clear_ring_rsc_enabled
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	ldr	x0, [x8, x20, lsl #3]
	ldr	w8, [x19, #8]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_set_ring_rsc_enabled
	b	LBB0_5
LBB0_8:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_FCS_LEN,4,2                ; @ETH_FCS_LEN
	.comm	_ETH_FRAME_LEN,4,2              ; @ETH_FRAME_LEN
	.comm	_IXGBE_MHADD,4,2                ; @IXGBE_MHADD
	.comm	_IXGBE_MHADD_MFS_SHIFT,4,2      ; @IXGBE_MHADD_MFS_SHIFT
	.comm	_IXGBE_MHADD_MFS_MASK,4,2       ; @IXGBE_MHADD_MFS_MASK
	.comm	_IXGBE_HLREG0,4,2               ; @IXGBE_HLREG0
	.comm	_IXGBE_HLREG0_JUMBOEN,4,2       ; @IXGBE_HLREG0_JUMBOEN
	.comm	_IXGBE_FLAG2_RSC_ENABLED,4,2    ; @IXGBE_FLAG2_RSC_ENABLED
	.comm	_IXGBE_FCOE_JUMBO_FRAME_SIZE,4,2 ; @IXGBE_FCOE_JUMBO_FRAME_SIZE
	.comm	_IXGBE_FLAG_FCOE_ENABLED,4,2    ; @IXGBE_FLAG_FCOE_ENABLED
	.no_dead_strip	_ixgbe_set_rx_buffer_len
.subsections_via_symbols
