	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdx_rx_init
_bdx_rx_init:                           ## @bdx_rx_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	40(%rdi), %rsi
	movl	32(%rdi), %edx
	movq	_regRXD_CFG0_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_regRXD_CFG1_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_regRXD_RPTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_regRXD_WPTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	callq	_bdx_fifo_init
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	leaq	8(%rbx), %rsi
	movl	28(%rbx), %edx
	movq	_regRXF_CFG0_0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_regRXF_CFG1_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_regRXF_RPTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_regRXF_WPTR_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	callq	_bdx_fifo_init
	testq	%rax, %rax
	je	LBB0_2
LBB0_4:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movl	8(%rbx), %edi
	sarl	$2, %edi
	callq	_bdx_rxdb_create
	movl	%eax, 24(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rax
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	(%rax), %rcx
	movq	%rcx, 16(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_ENTER,4,2                      ## @ENTER
	.comm	_regRXD_CFG0_0,4,2              ## @regRXD_CFG0_0
	.comm	_regRXD_CFG1_0,4,2              ## @regRXD_CFG1_0
	.comm	_regRXD_RPTR_0,4,2              ## @regRXD_RPTR_0
	.comm	_regRXD_WPTR_0,4,2              ## @regRXD_WPTR_0
	.comm	_regRXF_CFG0_0,4,2              ## @regRXF_CFG0_0
	.comm	_regRXF_CFG1_0,4,2              ## @regRXF_CFG1_0
	.comm	_regRXF_RPTR_0,4,2              ## @regRXF_RPTR_0
	.comm	_regRXF_WPTR_0,4,2              ## @regRXF_WPTR_0
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Rx init failed\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_bdx_rx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdx_rx_init
_bdx_rx_init:                           ; @bdx_rx_init
	.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
	add	x1, x0, #40
	ldr	w2, [x0, #32]
Lloh0:
	adrp	x8, _regRXD_CFG0_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _regRXD_CFG0_0@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _regRXD_CFG1_0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _regRXD_CFG1_0@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x8, _regRXD_RPTR_0@GOTPAGE
Lloh7:
	ldr	x8, [x8, _regRXD_RPTR_0@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
Lloh9:
	adrp	x8, _regRXD_WPTR_0@GOTPAGE
Lloh10:
	ldr	x8, [x8, _regRXD_WPTR_0@GOTPAGEOFF]
Lloh11:
	ldr	w6, [x8]
	bl	_bdx_fifo_init
	cbnz	x0, LBB0_2
; %bb.1:
	add	x1, x19, #8
	ldr	w2, [x19, #28]
Lloh12:
	adrp	x8, _regRXF_CFG0_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _regRXF_CFG0_0@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
Lloh15:
	adrp	x8, _regRXF_CFG1_0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _regRXF_CFG1_0@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
Lloh18:
	adrp	x8, _regRXF_RPTR_0@GOTPAGE
Lloh19:
	ldr	x8, [x8, _regRXF_RPTR_0@GOTPAGEOFF]
Lloh20:
	ldr	w5, [x8]
Lloh21:
	adrp	x8, _regRXF_WPTR_0@GOTPAGE
Lloh22:
	ldr	x8, [x8, _regRXF_WPTR_0@GOTPAGEOFF]
Lloh23:
	ldr	w6, [x8]
	mov	x0, x19
	bl	_bdx_fifo_init
	cbz	x0, LBB0_4
LBB0_2:
	ldr	x0, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w8, [x19, #8]
	asr	w0, w8, #2
	bl	_bdx_rxdb_create
	str	w0, [x19, #24]
	cbz	w0, LBB0_2
; %bb.5:
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh29:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh30:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x8, x9, x8
	str	x8, [x19, #16]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_ENTER,4,2                      ; @ENTER
	.comm	_regRXD_CFG0_0,4,2              ; @regRXD_CFG0_0
	.comm	_regRXD_CFG1_0,4,2              ; @regRXD_CFG1_0
	.comm	_regRXD_RPTR_0,4,2              ; @regRXD_RPTR_0
	.comm	_regRXD_WPTR_0,4,2              ; @regRXD_WPTR_0
	.comm	_regRXF_CFG0_0,4,2              ; @regRXF_CFG0_0
	.comm	_regRXF_CFG1_0,4,2              ; @regRXF_CFG1_0
	.comm	_regRXF_RPTR_0,4,2              ; @regRXF_RPTR_0
	.comm	_regRXF_WPTR_0,4,2              ; @regRXF_WPTR_0
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Rx init failed\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_bdx_rx_init
.subsections_via_symbols
