	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function receive_packet
_receive_packet:                        ## @receive_packet
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %r15
	incl	%ebx
	andl	$-2, %ebx
	leal	2(%rbx), %edi
	callq	_dev_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$2, %esi
	callq	_skb_reserve
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_skb_put
	movq	%rax, %r12
	movslq	%ebx, %rax
	addq	%r12, %rax
	movq	_MAX_DMA_ADDRESS@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jbe	LBB0_3
## %bb.4:
	movq	$0, 40(%r15)
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_warning
	movq	$0, 40(%r15)
	jmp	LBB0_12
LBB0_3:
	movq	%r12, 40(%r15)
	movq	56(%r15), %r12
LBB0_5:
	movq	%r15, %rsi
	addq	$48, %rsi
	xorl	%edi, %edi
	callq	_test_and_set_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %esi
	movq	32(%r15), %rdx
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_7:
	movq	$0, 32(%r15)
	movl	%ebx, 16(%r15)
	movq	%r13, 24(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	_DIR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	movq	_TCEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_DMAE@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	%r14, %rsi
	callq	_outb_control
	xorl	%eax, %eax
	callq	_claim_dma_lock
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r14), %edi
	callq	_disable_dma
	movl	4(%r14), %edi
	callq	_clear_dma_ff
	movl	4(%r14), %edi
	movl	$4, %esi
	callq	_set_dma_mode
	movl	4(%r14), %r13d
	movq	%r12, %rdi
	callq	_isa_virt_to_bus
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_set_dma_addr
	movl	4(%r14), %edi
	movl	%ebx, %esi
	callq	_set_dma_count
	movl	4(%r14), %edi
	callq	_enable_dma
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_release_dma_lock
	movq	_elp_debug@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_9
## %bb.8:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_debug
LBB0_9:
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	decq	%rax
	movq	%rax, 8(%r15)
LBB0_11:
	cmpl	$0, 4(%r15)
	je	LBB0_13
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%r14), %esi
	leaq	L_.str.3(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_warning                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: memory squeeze, dropping packet\n"

	.comm	_MAX_DMA_ADDRESS,8,3            ## @MAX_DMA_ADDRESS
L_.str.1:                               ## @.str.1
	.asciz	"%s: rx blocked, DMA in progress, dir %d\n"

	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_DIR,4,2                        ## @DIR
	.comm	_TCEN,4,2                       ## @TCEN
	.comm	_DMAE,4,2                       ## @DMAE
	.comm	_elp_debug,4,2                  ## @elp_debug
L_.str.2:                               ## @.str.2
	.asciz	"%s: rx DMA transfer started\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: receive_packet called, busy not set.\n"

	.no_dead_strip	_receive_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function receive_packet
_receive_packet:                        ; @receive_packet
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	add	w8, w21, #1
	and	w21, w8, #0xfffffffe
	add	w0, w21, #2
	bl	_dev_alloc_skb
	cbz	x0, LBB0_3
; %bb.1:
	mov	x23, x0
	mov	w1, #2
	bl	_skb_reserve
	mov	x0, x23
	mov	x1, x21
	bl	_skb_put
	mov	x22, x0
	add	x8, x0, w21, sxtw
Lloh0:
	adrp	x9, _MAX_DMA_ADDRESS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_DMA_ADDRESS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ls	LBB0_4
; %bb.2:
	str	xzr, [x20, #40]
	b	LBB0_5
LBB0_3:
	ldr	w1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_warning
	str	xzr, [x20, #40]
	b	LBB0_12
LBB0_4:
	str	x22, [x20, #40]
	ldr	x22, [x20, #56]
LBB0_5:
	add	x1, x20, #48
	mov	w0, #0
	bl	_test_and_set_bit
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w1, [x19]
	ldr	x2, [x20, #32]
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_7:
	stp	x23, xzr, [x20, #24]
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	stp	w21, w8, [x20, #16]
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _DIR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DIR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh13:
	adrp	x9, _TCEN@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TCEN@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh16:
	adrp	x9, _DMAE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _DMAE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w0, w8, w9
	mov	x1, x19
	bl	_outb_control
	bl	_claim_dma_lock
	mov	x23, x0
	ldr	w0, [x19, #4]
	bl	_disable_dma
	ldr	w0, [x19, #4]
	bl	_clear_dma_ff
	ldr	w0, [x19, #4]
	mov	w1, #4
	bl	_set_dma_mode
	ldr	w24, [x19, #4]
	mov	x0, x22
	bl	_isa_virt_to_bus
	mov	x1, x0
	mov	x0, x24
	bl	_set_dma_addr
	ldr	w0, [x19, #4]
	mov	x1, x21
	bl	_set_dma_count
	ldr	w0, [x19, #4]
	bl	_enable_dma
	mov	x0, x23
	bl	_release_dma_lock
Lloh19:
	adrp	x8, _elp_debug@GOTPAGE
Lloh20:
	ldr	x8, [x8, _elp_debug@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_9
; %bb.8:
	ldr	w1, [x19]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
LBB0_9:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_11
; %bb.10:
	sub	x8, x8, #1
	str	x8, [x20, #8]
LBB0_11:
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_13
LBB0_12:
	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_13:
	ldr	w1, [x19]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	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
	b	_pr_warning
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: memory squeeze, dropping packet\n"

	.comm	_MAX_DMA_ADDRESS,8,3            ; @MAX_DMA_ADDRESS
l_.str.1:                               ; @.str.1
	.asciz	"%s: rx blocked, DMA in progress, dir %d\n"

	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_DIR,4,2                        ; @DIR
	.comm	_TCEN,4,2                       ; @TCEN
	.comm	_DMAE,4,2                       ; @DMAE
	.comm	_elp_debug,4,2                  ; @elp_debug
l_.str.2:                               ; @.str.2
	.asciz	"%s: rx DMA transfer started\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: receive_packet called, busy not set.\n"

	.no_dead_strip	_receive_packet
.subsections_via_symbols
