	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdc_mbim_tx_fixup
_cdc_mbim_tx_fixup:                     ## @cdc_mbim_tx_fixup
	.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, %rbx
	movq	%rdi, %r15
	movq	12(%rdi), %r14
	movq	_USB_CDC_MBIM_NDP16_IPS_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	$0, -44(%rbp)
	testq	%r14, %r14
	je	LBB0_18
## %bb.1:
	movl	%eax, %r12d
	testq	%rbx, %rbx
	je	LBB0_17
## %bb.2:
	movq	(%rbx), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jle	LBB0_20
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_reset_mac_header
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_vlan_get_tag
	testq	%rax, %rax
	jns	LBB0_7
## %bb.4:
	movq	(%rbx), %rax
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_7
## %bb.5:
	leaq	-44(%rbp), %rsi
	movq	%rbx, %rdi
	callq	___vlan_get_tag
	testq	%rax, %rax
	je	LBB0_6
LBB0_7:
	movq	%rbx, %rdi
	callq	_eth_hdr
LBB0_8:
	movl	(%rax), %edi
	callq	_is_ip_proto
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_skb_pull
	movq	_FLAG_IPS0_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	-44(%rbp), %r8d
	testl	%eax, 4(%r15)
	je	LBB0_12
## %bb.9:
	testl	%r8d, %r8d
	je	LBB0_20
## %bb.10:
	movq	_MBIM_IPS0_VID@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r8d
	jne	LBB0_12
## %bb.11:
	movl	$0, -44(%rbp)
	jmp	LBB0_14
LBB0_18:
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_20:
	movq	%rbx, %rdi
	callq	_dev_kfree_skb_any
LBB0_21:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_12:
	movl	%r8d, %eax
	andl	$3840, %eax                     ## imm = 0xF00
	cmpl	$256, %eax                      ## imm = 0x100
	je	LBB0_15
## %bb.13:
	testl	%eax, %eax
	jne	LBB0_19
LBB0_14:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
	jmp	LBB0_20
LBB0_15:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_20
## %bb.16:
	movq	_USB_CDC_MBIM_NDP16_DSS_SIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movl	%eax, %r12d
LBB0_17:
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_cdc_ncm_fill_tx_frame
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_spin_unlock_bh
LBB0_22:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	movq	_tx_err@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	jmp	LBB0_20
LBB0_6:
	movq	%rbx, %rdi
	callq	_vlan_eth_hdr
	movq	_VLAN_ETH_HLEN@GOTPCREL(%rip), %r13
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_USB_CDC_MBIM_NDP16_IPS_SIGN,4,2 ## @USB_CDC_MBIM_NDP16_IPS_SIGN
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_VLAN_ETH_HLEN,8,3              ## @VLAN_ETH_HLEN
	.comm	_FLAG_IPS0_VLAN,4,2             ## @FLAG_IPS0_VLAN
	.comm	_MBIM_IPS0_VID,4,2              ## @MBIM_IPS0_VID
	.comm	_USB_CDC_MBIM_NDP16_DSS_SIGN,4,2 ## @USB_CDC_MBIM_NDP16_DSS_SIGN
	.comm	_tx_err,4,2                     ## @tx_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unsupported tci=0x%04x\n"

	.no_dead_strip	_cdc_mbim_tx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdc_mbim_tx_fixup
_cdc_mbim_tx_fixup:                     ; @cdc_mbim_tx_fixup
	.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	x19, x1
	mov	x21, x0
	ldur	x20, [x0, #12]
Lloh0:
	adrp	x8, _USB_CDC_MBIM_NDP16_IPS_SIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USB_CDC_MBIM_NDP16_IPS_SIGN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	wzr, [sp, #12]
	cbz	x20, LBB0_11
; %bb.1:
	mov	x22, x0
	cbz	x19, LBB0_18
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_12
; %bb.3:
	mov	x0, x19
	bl	_skb_reset_mac_header
	add	x1, sp, #12
	mov	x0, x19
	bl	_vlan_get_tag
	tbz	x0, #63, LBB0_6
; %bb.4:
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _VLAN_ETH_HLEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VLAN_ETH_HLEN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_6
; %bb.5:
	add	x1, sp, #12
	mov	x0, x19
	bl	___vlan_get_tag
	cbz	x0, LBB0_21
LBB0_6:
	mov	x0, x19
	bl	_eth_hdr
Lloh9:
	adrp	x24, _ETH_HLEN@GOTPAGE
Lloh10:
	ldr	x24, [x24, _ETH_HLEN@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x0]
	bl	_is_ip_proto
	mov	x23, x0
	ldr	x1, [x24]
	mov	x0, x19
	bl	_skb_pull
	ldr	w8, [x21, #4]
Lloh11:
	adrp	x9, _FLAG_IPS0_VLAN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FLAG_IPS0_VLAN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w4, [sp, #12]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.8:
	cbz	w4, LBB0_12
; %bb.9:
Lloh14:
	adrp	x8, _MBIM_IPS0_VID@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MBIM_IPS0_VID@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	cmp	w4, w8
	b.ne	LBB0_13
; %bb.10:
	str	wzr, [sp, #12]
	cbnz	w23, LBB0_18
	b	LBB0_12
LBB0_11:
	cbz	x19, LBB0_19
LBB0_12:
	mov	x0, x19
	bl	_dev_kfree_skb_any
	mov	x19, #0
	b	LBB0_19
LBB0_13:
	and	w8, w4, #0xf00
	cmp	w8, #256
	b.eq	LBB0_16
; %bb.14:
	cbnz	w8, LBB0_20
; %bb.15:
	cbnz	w23, LBB0_18
	b	LBB0_12
LBB0_16:
	cbnz	w23, LBB0_12
; %bb.17:
Lloh17:
	adrp	x8, _USB_CDC_MBIM_NDP16_DSS_SIGN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _USB_CDC_MBIM_NDP16_DSS_SIGN@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	mov	x22, x0
LBB0_18:
	mov	x0, x20
	bl	_spin_lock_bh
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	bl	_cdc_ncm_fill_tx_frame
	mov	x19, x0
	mov	x0, x20
	bl	_spin_unlock_bh
LBB0_19:
	mov	x0, x19
	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
LBB0_20:
Lloh20:
	adrp	x8, _tx_err@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tx_err@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x21]
Lloh23:
	adrp	x3, l_.str@PAGE
Lloh24:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_netif_err
	b	LBB0_12
LBB0_21:
	mov	x0, x19
	bl	_vlan_eth_hdr
Lloh25:
	adrp	x24, _VLAN_ETH_HLEN@GOTPAGE
Lloh26:
	ldr	x24, [x24, _VLAN_ETH_HLEN@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_USB_CDC_MBIM_NDP16_IPS_SIGN,4,2 ; @USB_CDC_MBIM_NDP16_IPS_SIGN
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_VLAN_ETH_HLEN,8,3              ; @VLAN_ETH_HLEN
	.comm	_FLAG_IPS0_VLAN,4,2             ; @FLAG_IPS0_VLAN
	.comm	_MBIM_IPS0_VID,4,2              ; @MBIM_IPS0_VID
	.comm	_USB_CDC_MBIM_NDP16_DSS_SIGN,4,2 ; @USB_CDC_MBIM_NDP16_DSS_SIGN
	.comm	_tx_err,4,2                     ; @tx_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unsupported tci=0x%04x\n"

	.no_dead_strip	_cdc_mbim_tx_fixup
.subsections_via_symbols
