	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fjes_hw_setup_epbuf            ## -- Begin function fjes_hw_setup_epbuf
	.p2align	4, 0x90
_fjes_hw_setup_epbuf:                   ## @fjes_hw_setup_epbuf
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	_EP_BUFFER_SUPPORT_VLAN_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	shlq	$2, %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_2
## %bb.1:
	movq	16(%rbx), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_memcpy
LBB0_2:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$72, %edx
	callq	_memset
	movq	$0, 64(%rbx)
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.3:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rcx,4), %edx
	movq	56(%rbx), %rsi
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
	movslq	(%rax), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_4
LBB0_5:
	movq	$0, 48(%rbx)
	movabsq	$309237645313, %rax             ## imm = 0x4800000001
	movq	%rax, (%rbx)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	addq	$-72, %rax
	movq	%rax, 32(%rbx)
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_FJES_MTU_TO_FRAME_SIZE
	movl	%eax, 24(%rbx)
	movq	32(%rbx), %rdi
	movl	%eax, %esi
	callq	_EP_RING_NUM
	movl	%eax, 40(%rbx)
	cmpl	$0, (%r12)
	jle	LBB0_8
## %bb.6:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rax,4), %ecx
	movq	16(%rbx), %rdx
	movl	%ecx, (%rdx,%rax,4)
	incq	%rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_7
LBB0_8:
	movq	_FJES_RX_MTU_CHANGING_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EP_BUFFER_SUPPORT_VLAN_MAX,4,2 ## @EP_BUFFER_SUPPORT_VLAN_MAX
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_FJES_RX_MTU_CHANGING_DONE,4,2  ## @FJES_RX_MTU_CHANGING_DONE
.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 fjes_hw_setup_epbuf
lCPI0_0:
	.long	1                               ; 0x1
	.long	72                              ; 0x48
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_fjes_hw_setup_epbuf
	.p2align	2
_fjes_hw_setup_epbuf:                   ; @fjes_hw_setup_epbuf
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x24, _EP_BUFFER_SUPPORT_VLAN_MAX@GOTPAGE
Lloh4:
	ldr	x24, [x24, _EP_BUFFER_SUPPORT_VLAN_MAX@GOTPAGEOFF]
	ldr	w8, [x24]
	lsl	x2, x8, #2
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x2, #15
	and	x10, x10, #0x7fffffff0
	sub	x20, x9, x10
	mov	sp, x20
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
	ldr	x1, [x19, #16]
	mov	x0, x20
	bl	_memcpy
LBB0_2:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #72
	bl	_memset
	str	xzr, [x19, #64]
Lloh7:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x9, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x9, #2
	ldr	w11, [x23, x10]
	ldr	x12, [x19, #56]
	str	w11, [x12, x10]
	add	x9, x9, #1
	ldrsw	x10, [x8]
	cmp	x9, x10
	b.lt	LBB0_4
LBB0_5:
	str	xzr, [x19, #48]
Lloh9:
	adrp	x8, lCPI0_0@PAGE
Lloh10:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	ldr	x8, [x22]
	sub	x8, x8, #72
	str	x8, [x19, #32]
	mov	x0, x21
	bl	_FJES_MTU_TO_FRAME_SIZE
	mov	x1, x0
	str	w0, [x19, #24]
	ldr	x0, [x19, #32]
	bl	_EP_RING_NUM
	str	w0, [x19, #40]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	x8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x9, x8, #2
	ldr	w10, [x20, x9]
	ldr	x11, [x19, #16]
	str	w10, [x11, x9]
	add	x8, x8, #1
	ldrsw	x9, [x24]
	cmp	x8, x9
	b.lt	LBB0_7
LBB0_8:
Lloh11:
	adrp	x8, _FJES_RX_MTU_CHANGING_DONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FJES_RX_MTU_CHANGING_DONE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldur	x8, [x29, #-56]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdr	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EP_BUFFER_SUPPORT_VLAN_MAX,4,2 ; @EP_BUFFER_SUPPORT_VLAN_MAX
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_FJES_RX_MTU_CHANGING_DONE,4,2  ; @FJES_RX_MTU_CHANGING_DONE
.subsections_via_symbols
