	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_reinit_rx
_bnad_reinit_rx:                        ## @bnad_reinit_rx
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rcx
	cmpq	$0, (%rcx,%rbx,8)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnad_destroy_rx
	movq	(%r15), %rax
	jmp	LBB0_4
LBB0_5:
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	leaq	32(%r15), %r14
	movq	24(%r15), %rax
	movl	4(%rax), %edi
	callq	_BNAD_FRAME_SIZE
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_bna_enet_mtu_set
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, (%r15)
	movl	$0, %ebx
	je	LBB0_11
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	cmpq	(%r15), %rbx
	jae	LBB0_11
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %r12
	incq	%rbx
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_bnad_setup_rx
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	testq	%r13, %r13
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%rax, %r14
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	callq	_netdev_err
	movq	%r14, %r13
	jmp	LBB0_10
LBB0_11:
	movq	16(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_14
## %bb.12:
	testq	%r13, %r13
	jne	LBB0_14
## %bb.13:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_bnad_restore_vlans
	movq	%r15, %rdi
	callq	_bnad_enable_default_bcast
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_bnad_mac_addr_set_locked
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	%r14, %rdi
	callq	_bnad_set_rx_mode
LBB0_14:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RXQ:%u setup failed\n"

	.no_dead_strip	_bnad_reinit_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_reinit_rx
_bnad_reinit_rx:                        ; @bnad_reinit_rx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x21, lsl #3]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_bnad_destroy_rx
	ldr	x8, [x20]
	b	LBB0_2
LBB0_5:
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x22, x20, #32
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #4]
	bl	_BNAD_FRAME_SIZE
	mov	x1, x0
	mov	x0, x22
	mov	x2, #0
	bl	_bna_enet_mtu_set
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.6:
	mov	x22, #0
	mov	x25, #0
Lloh0:
	adrp	x23, l_.str@PAGE
Lloh1:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x22, x22, #1
	ldr	x8, [x20]
	cmp	x22, x8
	b.hs	LBB0_12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_bnad_setup_rx
	cbz	x0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbnz	x25, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_netdev_err
	mov	x25, x24
	b	LBB0_7
LBB0_11:
	mov	x25, #0
	mov	x22, #0
LBB0_12:
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	ccmp	x25, #0, #0, ne
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	mov	w1, #0
	bl	_bnad_restore_vlans
	mov	x0, x20
	bl	_bnad_enable_default_bcast
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w1, [x19]
	mov	x0, x20
	bl	_bnad_mac_addr_set_locked
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	bl	_bnad_set_rx_mode
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RXQ:%u setup failed\n"

	.no_dead_strip	_bnad_reinit_rx
.subsections_via_symbols
