	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_vring_alloc_skb
_wil_vring_alloc_skb:                   ## @wil_vring_alloc_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r14
	callq	_wil_to_dev
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	(%r14), %ebx
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_wil_rx_snaplen
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rcx,2), %r14
	shlq	$3, %r14
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	addq	8(%r13), %r14
	movq	%rax, %r13
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leal	(%rax,%r12), %edi
	callq	_dev_alloc_skb
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_2:
	movq	%r12, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_reserve
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_skb_put
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movl	(%r12), %edx
	movl	4(%r12), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_dma_map_single
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_kfree_skb
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_4:
	movq	_RX_DMA_D0_CMD_DMA_RT@GOTPCREL(%rip), %rax
	movq	_RX_DMA_D0_CMD_DMA_IT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -96(%rbp)
	leaq	-80(%rbp), %rdi
	movl	%ebx, %esi
	callq	_wil_desc_addr_set
	movq	$0, -88(%rbp)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movl	%eax, -92(%rbp)
	movq	-80(%rbp), %rax
	movq	%rax, 16(%r14)
	movups	-96(%rbp), %xmm0
	movups	%xmm0, (%r14)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rax,%rcx,8)
	xorl	%r15d, %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_RX_DMA_D0_CMD_DMA_RT,4,2       ## @RX_DMA_D0_CMD_DMA_RT
	.comm	_RX_DMA_D0_CMD_DMA_IT,4,2       ## @RX_DMA_D0_CMD_DMA_IT
	.no_dead_strip	_wil_vring_alloc_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_vring_alloc_skb
_wil_vring_alloc_skb:                   ; @wil_vring_alloc_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x24, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_wil_to_dev
	mov	x23, x0
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w21, w9, w8
	bl	_wil_rx_snaplen
	ldr	x25, [x20, #8]
	add	w22, w21, w0
	add	w0, w22, w24
	bl	_dev_alloc_skb
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x24
	bl	_skb_reserve
	mov	x0, x21
	mov	x1, x22
	bl	_skb_put
Lloh3:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #8]
	ldp	w2, w1, [x21]
Lloh6:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x23
	bl	_dma_map_single
	mov	x24, x0
	mov	x0, x23
	mov	x1, x24
	bl	_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	bl	_kfree_skb
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	mov	w8, #24
	madd	x23, x19, x8, x25
Lloh12:
	adrp	x8, _RX_DMA_D0_CMD_DMA_RT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RX_DMA_D0_CMD_DMA_RT@GOTPAGEOFF]
Lloh14:
	adrp	x9, _RX_DMA_D0_CMD_DMA_IT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RX_DMA_D0_CMD_DMA_IT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	add	x8, sp, #8
	add	x0, x8, #16
	mov	x1, x24
	bl	_wil_desc_addr_set
	str	xzr, [sp, #16]
	mov	x0, x22
	bl	_cpu_to_le16
	mov	x8, x0
	mov	w0, #0
	str	w8, [sp, #12]
	ldur	q0, [sp, #8]
	ldr	x8, [sp, #24]
	str	x8, [x23, #16]
	str	q0, [x23]
	ldr	x8, [x20]
	str	x21, [x8, x19, lsl #3]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_RX_DMA_D0_CMD_DMA_RT,4,2       ; @RX_DMA_D0_CMD_DMA_RT
	.comm	_RX_DMA_D0_CMD_DMA_IT,4,2       ; @RX_DMA_D0_CMD_DMA_IT
	.no_dead_strip	_wil_vring_alloc_skb
.subsections_via_symbols
