	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function skge_rx_setup
_skge_rx_setup:                         ## @skge_rx_setup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %r15
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	(%rdx), %esi
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edx
	callq	_pci_map_single
	movl	%eax, %r14d
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_pci_dma_mapping_error
	movl	$-1, %r13d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_lower_32_bits
	movl	%eax, 44(%r15)
	movl	%r14d, %edi
	callq	_upper_32_bits
	movl	%eax, 40(%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	movq	%rax, %r12
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r15)
	movq	%rax, 24(%r15)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r15)
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_wmb
	movq	_BMU_OWN@GOTPCREL(%rip), %rax
	movq	_BMU_STF@GOTPCREL(%rip), %rcx
	movq	_BMU_IRQ_EOF@GOTPCREL(%rip), %rdx
	movq	_BMU_TCP_CHECK@GOTPCREL(%rip), %rsi
	movl	(%rax), %eax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	orl	%ebx, %eax
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	movl	%eax, (%r15)
	movq	_mapaddr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_dma_unmap_addr_set
	movq	_maplen@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dma_unmap_len_set
LBB0_2:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_BMU_OWN,4,2                    ## @BMU_OWN
	.comm	_BMU_STF,4,2                    ## @BMU_STF
	.comm	_BMU_IRQ_EOF,4,2                ## @BMU_IRQ_EOF
	.comm	_BMU_TCP_CHECK,4,2              ## @BMU_TCP_CHECK
	.comm	_mapaddr,4,2                    ## @mapaddr
	.comm	_maplen,4,2                     ## @maplen
	.no_dead_strip	_skge_rx_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function skge_rx_setup
_skge_rx_setup:                         ; @skge_rx_setup
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	ldr	x24, [x1, #8]
	ldr	x8, [x0]
	ldr	w0, [x8]
	ldr	w1, [x2]
Lloh0:
	adrp	x8, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x19
	bl	_pci_map_single
	mov	x21, x0
	ldr	x8, [x23]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	mov	x0, x21
	bl	_lower_32_bits
	str	w0, [x24, #44]
	mov	x0, x21
	bl	_upper_32_bits
	str	w0, [x24, #40]
Lloh3:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
	str	x22, [x20]
Lloh5:
	ldr	x8, [x8]
	stp	x8, x8, [x24, #24]
	stp	xzr, xzr, [x24, #8]
	bl	_wmb
Lloh6:
	adrp	x8, _BMU_OWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMU_OWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BMU_STF@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMU_STF@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _BMU_IRQ_EOF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BMU_IRQ_EOF@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
Lloh15:
	adrp	x11, _BMU_TCP_CHECK@GOTPAGE
Lloh16:
	ldr	x11, [x11, _BMU_TCP_CHECK@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	orr	w8, w8, w19
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	str	w8, [x24]
Lloh18:
	adrp	x8, _mapaddr@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mapaddr@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_dma_unmap_addr_set
Lloh21:
	adrp	x8, _maplen@GOTPAGE
Lloh22:
	ldr	x8, [x8, _maplen@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_dma_unmap_len_set
	mov	w0, #0
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_BMU_OWN,4,2                    ; @BMU_OWN
	.comm	_BMU_STF,4,2                    ; @BMU_STF
	.comm	_BMU_IRQ_EOF,4,2                ; @BMU_IRQ_EOF
	.comm	_BMU_TCP_CHECK,4,2              ; @BMU_TCP_CHECK
	.comm	_mapaddr,4,2                    ; @mapaddr
	.comm	_maplen,4,2                     ; @maplen
	.no_dead_strip	_skge_rx_setup
.subsections_via_symbols
