	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function topaz_skb2rbd_attach
_topaz_skb2rbd_attach:                  ## @topaz_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	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	16(%r12), %rcx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, (%rcx,%r14,8)
	movl	8(%r12), %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	8(%r12), %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
	movl	%eax, %edi
	callq	_cpu_to_le32
	movq	%r14, %rbx
	shlq	$4, %rbx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%rax, 8(%r13,%rbx)
	movq	_QTN_BD_EMPTY@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le32
	movq	%rax, (%r13,%rbx)
	movq	%r14, (%r12)
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %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 mapping error: %pad\n"

	.comm	_QTN_BD_EMPTY,4,2               ## @QTN_BD_EMPTY
	.no_dead_strip	_topaz_skb2rbd_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function topaz_skb2rbd_attach
_topaz_skb2rbd_attach:                  ; @topaz_skb2rbd_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x23, [x0, #24]
Lloh0:
	adrp	x22, _SKB_BUF_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SKB_BUF_SIZE@GOTPAGEOFF]
	ldr	w1, [x22]
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, #16]
	cbz	x0, LBB0_3
; %bb.1:
	str	x0, [x8, x19, lsl #3]
	ldr	w8, [x20, #8]
	ldr	w1, [x0]
	ldr	w2, [x22]
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	x22, x0
	str	w0, [sp, #12]
	ldr	w0, [x20, #8]
	mov	x1, x22
	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, x22
	bl	_QTN_HOST_LO32
	bl	_cpu_to_le32
	add	x22, x23, x19, lsl #4
	str	x0, [x22, #8]
Lloh13:
	adrp	x8, _QTN_BD_EMPTY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _QTN_BD_EMPTY@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w0, w8, w21
	bl	_cpu_to_le32
	mov	x8, x0
	mov	w0, #0
	str	x8, [x22]
	str	x19, [x20]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.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 mapping error: %pad\n"

	.comm	_QTN_BD_EMPTY,4,2               ; @QTN_BD_EMPTY
	.no_dead_strip	_topaz_skb2rbd_attach
.subsections_via_symbols
