	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rocker_tx_desc_frag_map_put
_rocker_tx_desc_frag_map_put:           ## @rocker_tx_desc_frag_map_put
	.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	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movq	%rdx, %rsi
	movq	%r14, %rdx
	callq	_pci_map_single
	movl	%eax, %r12d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_pci_dma_mapping_error
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_3:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_ROCKER_TLV_TX_FRAG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rocker_tlv_nest_start
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %r15
	movq	_ROCKER_TLV_TX_FRAG_ATTR_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rocker_tlv_put_u64
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:
	movq	_ROCKER_TLV_TX_FRAG_ATTR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_rocker_tlv_put_u16
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rocker_tlv_nest_cancel
LBB0_9:
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_pci_unmap_single
	movq	_EMSGSIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_10:
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rocker_tlv_nest_end
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to dma map tx frag\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ROCKER_TLV_TX_FRAG,4,2         ## @ROCKER_TLV_TX_FRAG
	.comm	_ROCKER_TLV_TX_FRAG_ATTR_ADDR,4,2 ## @ROCKER_TLV_TX_FRAG_ATTR_ADDR
	.comm	_ROCKER_TLV_TX_FRAG_ATTR_LEN,4,2 ## @ROCKER_TLV_TX_FRAG_ATTR_LEN
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.no_dead_strip	_rocker_tx_desc_frag_map_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rocker_tx_desc_frag_map_put
_rocker_tx_desc_frag_map_put:           ; @rocker_tx_desc_frag_map_put
	.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	x21, x1
	mov	x23, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8]
Lloh0:
	adrp	x24, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DMA_TO_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x2
	mov	x2, x19
	bl	_pci_map_single
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_pci_dma_mapping_error
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	bl	_net_ratelimit
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_3:
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
Lloh6:
	adrp	x8, _ROCKER_TLV_TX_FRAG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ROCKER_TLV_TX_FRAG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_rocker_tlv_nest_start
	cbz	x0, LBB0_8
; %bb.5:
	mov	x23, x0
Lloh9:
	adrp	x8, _ROCKER_TLV_TX_FRAG_ATTR_ADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ROCKER_TLV_TX_FRAG_ATTR_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	bl	_rocker_tlv_put_u64
	cbnz	x0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _ROCKER_TLV_TX_FRAG_ATTR_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ROCKER_TLV_TX_FRAG_ATTR_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x19
	bl	_rocker_tlv_put_u16
	cbz	x0, LBB0_11
LBB0_7:
	mov	x0, x21
	mov	x1, x23
	bl	_rocker_tlv_nest_cancel
LBB0_8:
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_pci_unmap_single
Lloh15:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	mov	x0, x21
	mov	x1, x23
	bl	_rocker_tlv_nest_end
	mov	w0, #0
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to dma map tx frag\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ROCKER_TLV_TX_FRAG,4,2         ; @ROCKER_TLV_TX_FRAG
	.comm	_ROCKER_TLV_TX_FRAG_ATTR_ADDR,4,2 ; @ROCKER_TLV_TX_FRAG_ATTR_ADDR
	.comm	_ROCKER_TLV_TX_FRAG_ATTR_LEN,4,2 ; @ROCKER_TLV_TX_FRAG_ATTR_LEN
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.no_dead_strip	_rocker_tx_desc_frag_map_put
.subsections_via_symbols
