	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function try_get_rx_skb
_try_get_rx_skb:                        ## @try_get_rx_skb
	.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	%rsi, %r12
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_RX_RING_SIZE@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	divl	(%rcx)
	movl	%edx, %r15d
	movq	24(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_HDLC_MAX_MRU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RX_MAX
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_dev_alloc_skb
	movq	%rax, %r14
	movq	16(%rbx), %rax
	movq	%r14, (%rax,%r15,8)
	testq	%r14, %r14
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_hdlc_type_trans
	movl	%eax, 4(%r14)
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r13d, %edx
	callq	_pci_map_single
	movl	%eax, %edi
	callq	_cpu_to_le32
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %ecx
	xorl	%eax, %eax
LBB0_3:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx,%r15,8)
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_RING_SIZE,4,2               ## @RX_RING_SIZE
	.comm	_HDLC_MAX_MRU,4,2               ## @HDLC_MAX_MRU
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_try_get_rx_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function try_get_rx_skb
_try_get_rx_skb:                        ; @try_get_rx_skb
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_RING_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w23, w10, w9, w8
	ldr	x24, [x0, #24]
Lloh3:
	adrp	x8, _HDLC_MAX_MRU@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDLC_MAX_MRU@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_RX_MAX
	mov	x21, x0
	bl	_dev_alloc_skb
	ldr	x8, [x19, #16]
	str	x0, [x8, w23, uxtw #3]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x1, x20
	bl	_hdlc_type_trans
	str	w0, [x22, #4]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x22]
Lloh6:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_pci_map_single
	bl	_cpu_to_le32
	mov	w8, #0
	b	LBB0_3
LBB0_2:
	mov	w8, #-1
LBB0_3:
	str	x0, [x24, x23, lsl #3]
	mov	x0, x8
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_RING_SIZE,4,2               ; @RX_RING_SIZE
	.comm	_HDLC_MAX_MRU,4,2               ; @HDLC_MAX_MRU
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_try_get_rx_skb
.subsections_via_symbols
