	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rxd_owner_bit_reset
_rxd_owner_bit_reset:                   ## @rxd_owner_bit_reset
	.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	$88, %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	8(%rdi), %rax
	movq	$0, -120(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -64(%rbp)
	movl	$0, -60(%rbp)
	movl	(%rax), %eax
	movq	_HEADER_ETHERNET_II_802_3_SIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	addl	%eax, %r13d
	movq	_HEADER_802_2_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r13d
	movq	_HEADER_SNAP_SIZE@GOTPCREL(%rip), %rcx
	addl	(%rcx), %r13d
	movq	(%rdi), %rcx
	movq	_RXD_MODE_1@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	addl	(%rax), %r13d
	jmp	LBB0_4
LBB0_2:
	movq	_RXD_MODE_3B@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.3:
	movq	_ALIGN_SIZE@GOTPCREL(%rip), %rdx
	movq	_BUF0_LEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	addl	(%rdx), %eax
	leal	(%rsi,%rax), %r13d
	addl	$4, %r13d
LBB0_4:
	cmpl	$0, 24(%r15)
	jle	LBB0_20
## %bb.5:
	xorl	%r9d, %r9d
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_15 Depth 2
	movq	32(%r15), %rax
	movl	(%rax,%r9,4), %eax
	movq	_rxd_count@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rcx,4), %esi
	leal	1(%rsi), %r8d
	cltd
	idivl	%r8d
	testl	%eax, %eax
	jle	LBB0_18
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	16(%r15), %r8
	movq	%r9, %rdx
	shlq	$4, %rdx
	leaq	(%r8,%rdx), %rbx
	addq	$8, %rbx
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	addq	%r8, %rdx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	movb	$1, %bl
	xorl	%edx, %edx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_15
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	%bl, -41(%rbp)                  ## 1-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_RXD_MODE_3B@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	addq	%r14, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	(%rax,%r14,2), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	leaq	-120(%rbp), %rcx
	leaq	-68(%rbp), %r8
	leaq	-64(%rbp), %r9
	pushq	%r13
	leaq	-60(%rbp), %rax
	pushq	%rax
	callq	_set_rxd_buffer_pointer
	addq	$16, %rsp
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_set_rxd_buffer_size
	xorl	%eax, %eax
	callq	_dma_wmb
	movq	_RXD_OWN_XENA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	incq	%rbx
	movq	_rxd_count@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movslq	(%rax,%rcx,4), %rsi
	addq	$4, %r14
	cmpq	%rsi, %rbx
	jl	LBB0_10
## %bb.14:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
LBB0_15:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	incq	%rbx
	movq	%rbx, %rdx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	setb	%bl
	testl	%esi, %esi
	jg	LBB0_9
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	$1, -41(%rbp)                   ## 1-byte Folded Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	jne	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r9
	movslq	24(%r15), %rax
	cmpq	%rax, %r9
	jge	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %rcx
	jmp	LBB0_6
LBB0_20:
	xorl	%eax, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADER_ETHERNET_II_802_3_SIZE,4,2 ## @HEADER_ETHERNET_II_802_3_SIZE
	.comm	_HEADER_802_2_SIZE,4,2          ## @HEADER_802_2_SIZE
	.comm	_HEADER_SNAP_SIZE,4,2           ## @HEADER_SNAP_SIZE
	.comm	_RXD_MODE_1,8,3                 ## @RXD_MODE_1
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_RXD_MODE_3B,8,3                ## @RXD_MODE_3B
	.comm	_ALIGN_SIZE,4,2                 ## @ALIGN_SIZE
	.comm	_BUF0_LEN,4,2                   ## @BUF0_LEN
	.comm	_rxd_count,8,3                  ## @rxd_count
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RXD_OWN_XENA,4,2               ## @RXD_OWN_XENA
	.no_dead_strip	_rxd_owner_bit_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rxd_owner_bit_reset
_rxd_owner_bit_reset:                   ; @rxd_owner_bit_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #28]
	ldp	x8, x9, [x0]
	ldr	w9, [x9]
Lloh0:
	adrp	x10, _HEADER_ETHERNET_II_802_3_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _HEADER_ETHERNET_II_802_3_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
Lloh3:
	adrp	x11, _HEADER_802_2_SIZE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _HEADER_802_2_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	add	w10, w10, w9
	add	w10, w10, w11
Lloh6:
	adrp	x11, _HEADER_SNAP_SIZE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HEADER_SNAP_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	add	w20, w10, w11
Lloh9:
	adrp	x10, _RXD_MODE_1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RXD_MODE_1@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
Lloh12:
	adrp	x12, _RXD_MODE_3B@GOTPAGE
Lloh13:
	ldr	x12, [x12, _RXD_MODE_3B@GOTPAGEOFF]
	cmp	x8, x10
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	add	w20, w20, w9
	b	LBB0_4
LBB0_2:
	ldr	x10, [x12]
	cmp	x8, x10
	b.ne	LBB0_4
; %bb.3:
Lloh17:
	adrp	x10, _ALIGN_SIZE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _ALIGN_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _BUF0_LEN@GOTPAGE
Lloh21:
	ldr	x11, [x11, _BUF0_LEN@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	add	w9, w9, w10
	add	w9, w9, w11
	add	w20, w9, #4
LBB0_4:
	ldr	w9, [x19, #24]
	cmp	w9, #1
	b.lt	LBB0_20
; %bb.5:
	mov	x13, #0
	mov	x21, #0
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x9, [x19, #32]
	ldr	w10, [x9, x13, lsl #2]
Lloh23:
	adrp	x9, _rxd_count@GOTPAGE
Lloh24:
	ldr	x9, [x9, _rxd_count@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	ldr	w9, [x9, x8, lsl #2]
	add	w11, w9, #1
	sdiv	w11, w10, w11
	cmp	w11, #1
	b.lt	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	ldr	x10, [x19, #16]
	stp	x11, x13, [sp, #8]              ; 16-byte Folded Spill
	add	x23, x10, x13, lsl #4
	add	x24, x23, #8
	mov	w10, #1
	cmp	w9, #1
	b.lt	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	w10, [sp, #24]                  ; 4-byte Folded Spill
	mov	x27, #0
	mov	x25, #0
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x26, x12
	ldr	x9, [x12]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x23]
	ldr	x8, [x8, x28, lsl #3]
	add	x21, x8, x27
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [x24]
	ldr	x8, [x8, x28, lsl #3]
	ldr	x22, [x8, x25, lsl #3]
	add	x3, sp, #40
	add	x4, sp, #36
	add	x5, sp, #32
	add	x6, sp, #28
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x7, x20
	bl	_set_rxd_buffer_pointer
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_set_rxd_buffer_size
	bl	_dma_wmb
Lloh29:
	adrp	x8, _RXD_OWN_XENA@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RXD_OWN_XENA@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	str	w8, [x22]
	add	x25, x25, #1
Lloh32:
	adrp	x8, _rxd_count@GOTPAGE
Lloh33:
	ldr	x8, [x8, _rxd_count@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x8]
	ldr	x8, [x19]
	ldrsw	x9, [x9, x8, lsl #2]
	add	x27, x27, #4
	cmp	x25, x9
	mov	x12, x26
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x11, [sp, #8]                   ; 8-byte Folded Reload
LBB0_14:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x28, x28, #1
	cmp	x28, x11
	b.eq	LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	cset	w10, lo
	cmp	w9, #1
	b.ge	LBB0_8
	b	LBB0_14
LBB0_16:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x12, x26
	ldr	x13, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w8, [sp, #24]                   ; 4-byte Folded Reload
	tbnz	w8, #0, LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x13, x13, #1
	ldrsw	x8, [x19, #24]
	cmp	x13, x8
	b.ge	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	b	LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x13, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_17
LBB0_20:
	mov	w0, #0
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADER_ETHERNET_II_802_3_SIZE,4,2 ; @HEADER_ETHERNET_II_802_3_SIZE
	.comm	_HEADER_802_2_SIZE,4,2          ; @HEADER_802_2_SIZE
	.comm	_HEADER_SNAP_SIZE,4,2           ; @HEADER_SNAP_SIZE
	.comm	_RXD_MODE_1,8,3                 ; @RXD_MODE_1
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_RXD_MODE_3B,8,3                ; @RXD_MODE_3B
	.comm	_ALIGN_SIZE,4,2                 ; @ALIGN_SIZE
	.comm	_BUF0_LEN,4,2                   ; @BUF0_LEN
	.comm	_rxd_count,8,3                  ; @rxd_count
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RXD_OWN_XENA,4,2               ; @RXD_OWN_XENA
	.no_dead_strip	_rxd_owner_bit_reset
.subsections_via_symbols
