	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pearl_skb2rbd_attach
_pearl_skb2rbd_attach:                  ## @pearl_skb2rbd_attach
	.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, %r14
	movq	%rdi, %r15
	movq	_SKB_BUF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	___netdev_alloc_skb_ip_align
	movq	32(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, (%rcx,%r14,8)
	movq	8(%r15), %r12
	movl	24(%r15), %edi
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_pci_map_single
	movl	%eax, %ebx
	movl	%eax, -44(%rbp)
	movl	24(%r15), %edi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	leaq	-44(%rbp), %rsi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movq	$0, (%rcx,%r14,8)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	callq	_QTN_HOST_LO32
	movq	%rax, %rdi
	callq	_cpu_to_le32
	leaq	(%r14,%r14,2), %r13
	movq	%rax, 16(%r12,%r13,8)
	movl	%ebx, %edi
	callq	_QTN_HOST_HI32
	movq	%rax, %rdi
	callq	_cpu_to_le32
	movq	%rax, 8(%r12,%r13,8)
	movl	$0, (%r12,%r13,8)
	movq	%r14, 16(%r15)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wmb
	movl	-44(%rbp), %edi
	callq	_QTN_HOST_LO32
	movq	%rax, %r12
	movl	(%r15), %edi
	callq	_PCIE_HDP_HHBM_BUF_PTR
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_writel
	movl	(%r15), %edi
	callq	_PCIE_HDP_TX_HOST_Q_WR_PTR
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_writel
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SKB_BUF_SIZE,4,2               ## @SKB_BUF_SIZE
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb DMA mapping error: %pad\n"

	.no_dead_strip	_pearl_skb2rbd_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pearl_skb2rbd_attach
_pearl_skb2rbd_attach:                  ; @pearl_skb2rbd_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _SKB_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SKB_BUF_SIZE@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, #0
	bl	___netdev_alloc_skb_ip_align
	ldr	x8, [x20, #32]
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x8, x19, lsl #3]
	ldr	x22, [x20, #8]
	ldr	w8, [x20, #24]
	ldr	w1, [x0]
	ldr	w2, [x21]
Lloh5:
	adrp	x9, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x9]
	mov	x0, x8
	bl	_pci_map_single
	mov	x21, x0
	str	w0, [sp, #12]
	ldr	w0, [x20, #24]
	mov	x1, x21
	bl	_pci_dma_mapping_error
	cbz	x0, LBB0_5
; %bb.2:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	add	x1, sp, #12
	bl	_pr_err
	b	LBB0_4
LBB0_3:
	str	xzr, [x8, x19, lsl #3]
LBB0_4:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_QTN_HOST_LO32
	bl	_cpu_to_le32
	mov	w8, #24
	madd	x22, x19, x8, x22
	str	x0, [x22, #16]
	mov	x0, x21
	bl	_QTN_HOST_HI32
	bl	_cpu_to_le32
	str	x0, [x22, #8]
	str	wzr, [x22]
	str	x19, [x20, #16]
	bl	_wmb
	ldr	w0, [sp, #12]
	bl	_QTN_HOST_LO32
	mov	x21, x0
	ldr	w0, [x20]
	bl	_PCIE_HDP_HHBM_BUF_PTR
	mov	x1, x0
	mov	x0, x21
	bl	_writel
	ldr	w0, [x20]
	bl	_PCIE_HDP_TX_HOST_Q_WR_PTR
	mov	x1, x0
	mov	x0, x19
	bl	_writel
	mov	w0, #0
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SKB_BUF_SIZE,4,2               ; @SKB_BUF_SIZE
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb DMA mapping error: %pad\n"

	.no_dead_strip	_pearl_skb2rbd_attach
.subsections_via_symbols
