	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function glc_init_locked
_glc_init_locked:                       ## @glc_init_locked
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	addq	$76, %rdi
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_mtx_assert
	movl	40(%r14), %esi
	movl	44(%r14), %edi
	xorl	%edx, %edx
	callq	_lv1_net_stop_tx_dma
	movl	40(%r14), %esi
	movl	44(%r14), %edi
	xorl	%edx, %edx
	callq	_lv1_net_stop_rx_dma
	movq	%r14, %rdi
	callq	_glc_set_multicast
	movq	_GLC_MAX_RX_PACKETS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_6
## %bb.1:
	movl	$8, %r12d
	xorl	%ebx, %ebx
	movq	_BUS_DMASYNC_PREREAD@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_glc_add_rxbuf_dma
	movl	68(%r14), %esi
	movl	72(%r14), %edi
	movl	(%r13), %edx
	callq	_bus_dmamap_sync
	incq	%rbx
	movq	_GLC_MAX_RX_PACKETS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r14), %r15
	movl	%ebx, -8(%r15,%r12)
	cmpq	$0, (%r15,%r12)
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_glc_add_rxbuf
	cmpq	$0, (%r15,%r12)
	jne	LBB0_5
## %bb.4:
	movl	$-1, -8(%r15,%r12)
LBB0_6:
	leaq	64(%r14), %r12
	movq	%r12, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %rbx
	leaq	56(%r14), %r15
	movq	_txs_q@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_STAILQ_INSERT_TAIL
	movq	%r12, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movl	60(%r14), %edi
	movl	8(%rbx), %esi
	callq	_bus_dmamap_unload
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	callq	_m_freem
	movq	$0, (%rbx)
	jmp	LBB0_10
LBB0_11:
	movl	$-1, (%r14)
	movq	$0, 48(%r14)
	movl	44(%r14), %edi
	movl	40(%r14), %esi
	movq	32(%r14), %rax
	movl	4(%rax), %edx
	xorl	%ecx, %ecx
	callq	_lv1_net_start_rx_dma
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	28(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_device_printf
LBB0_13:
	movq	_IFF_DRV_RUNNING@GOTPCREL(%rip), %rax
	movq	16(%r14), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %esi
	orl	(%rax), %esi
	movq	_IFF_DRV_OACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%esi, %eax
	movl	%eax, 4(%rcx)
	movl	%edx, 24(%r14)
	movq	$0, 8(%r14)
	leaq	4(%r14), %rdi
	movq	_hz@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_glc_tick@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_callout_reset                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_GLC_MAX_RX_PACKETS,4,2         ## @GLC_MAX_RX_PACKETS
	.comm	_BUS_DMASYNC_PREREAD,4,2        ## @BUS_DMASYNC_PREREAD
	.comm	_txs_q,4,2                      ## @txs_q
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lv1_net_start_rx_dma error: %d\n"

	.comm	_IFF_DRV_RUNNING,4,2            ## @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ## @IFF_DRV_OACTIVE
	.comm	_hz,4,2                         ## @hz
	.comm	_glc_tick,4,2                   ## @glc_tick
	.no_dead_strip	_glc_init_locked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function glc_init_locked
_glc_init_locked:                       ; @glc_init_locked
	.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	x19, x0
	add	x0, x0, #76
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mtx_assert
	ldp	w1, w0, [x19, #40]
	mov	w2, #0
	bl	_lv1_net_stop_tx_dma
	ldp	w1, w0, [x19, #40]
	mov	w2, #0
	bl	_lv1_net_stop_rx_dma
	mov	x0, x19
	bl	_glc_set_multicast
Lloh3:
	adrp	x21, _GLC_MAX_RX_PACKETS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GLC_MAX_RX_PACKETS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
	mov	x20, #0
Lloh5:
	adrp	x23, _BUS_DMASYNC_PREREAD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _BUS_DMASYNC_PREREAD@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_glc_add_rxbuf_dma
	ldp	w1, w0, [x19, #68]
	ldr	w2, [x23]
	bl	_bus_dmamap_sync
	add	x20, x20, #1
	ldrsw	x8, [x21]
	add	x22, x22, #16
	cmp	x20, x8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #32]
	add	x25, x24, x22
	str	w20, [x25]
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_glc_add_rxbuf
	ldr	x8, [x25, #8]
	cbnz	x8, LBB0_2
; %bb.5:
	mov	w8, #-1
	str	w8, [x24, x22]
LBB0_6:
	add	x20, x19, #64
	mov	x0, x20
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_11
; %bb.7:
	mov	x22, x0
	add	x21, x19, #56
Lloh7:
	adrp	x23, _txs_q@GOTPAGE
Lloh8:
	ldr	x23, [x23, _txs_q@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w2, [x23]
	mov	x0, x21
	mov	x1, x22
	bl	_STAILQ_INSERT_TAIL
	mov	x0, x20
	bl	_STAILQ_FIRST
	mov	x22, x0
	cbz	x0, LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_STAILQ_REMOVE_HEAD
	ldr	w0, [x19, #60]
	ldr	w1, [x22, #8]
	bl	_bus_dmamap_unload
	ldr	x0, [x22]
	cbz	x0, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_m_freem
	str	xzr, [x22]
	b	LBB0_8
LBB0_11:
	mov	w8, #-1
	str	w8, [x19]
	str	xzr, [x19, #48]
	ldp	w1, w0, [x19, #40]
	ldr	x8, [x19, #32]
	ldr	w2, [x8, #4]
	mov	w3, #0
	bl	_lv1_net_start_rx_dma
	cbz	w0, LBB0_13
; %bb.12:
	mov	x2, x0
	ldr	w0, [x19, #28]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
LBB0_13:
Lloh11:
	adrp	x8, _IFF_DRV_RUNNING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IFF_DRV_RUNNING@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x9, [x19, #16]
	ldp	w11, w10, [x9]
	orr	w8, w10, w8
Lloh14:
	adrp	x10, _IFF_DRV_OACTIVE@GOTPAGE
Lloh15:
	ldr	x10, [x10, _IFF_DRV_OACTIVE@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	bic	w8, w8, w10
	str	w8, [x9, #4]
	str	w11, [x19, #24]
	str	xzr, [x19, #8]
	add	x0, x19, #4
Lloh17:
	adrp	x8, _hz@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hz@GOTPAGEOFF]
Lloh19:
	adrp	x9, _glc_tick@GOTPAGE
Lloh20:
	ldr	x9, [x9, _glc_tick@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	ldr	w2, [x9]
	mov	x3, x19
	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
	b	_callout_reset
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_GLC_MAX_RX_PACKETS,4,2         ; @GLC_MAX_RX_PACKETS
	.comm	_BUS_DMASYNC_PREREAD,4,2        ; @BUS_DMASYNC_PREREAD
	.comm	_txs_q,4,2                      ; @txs_q
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lv1_net_start_rx_dma error: %d\n"

	.comm	_IFF_DRV_RUNNING,4,2            ; @IFF_DRV_RUNNING
	.comm	_IFF_DRV_OACTIVE,4,2            ; @IFF_DRV_OACTIVE
	.comm	_hz,4,2                         ; @hz
	.comm	_glc_tick,4,2                   ; @glc_tick
	.no_dead_strip	_glc_init_locked
.subsections_via_symbols
