	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qmi_wwan_rx_fixup
_qmi_wwan_rx_fixup:                     ## @qmi_wwan_rx_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), %rax
	movq	(%rdi), %rcx
	xorl	%r15d, %r15d
	cmpq	(%rcx), %rax
	jge	LBB0_1
LBB0_17:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	8(%rdi), %r13d
	movq	_QMI_WWAN_FLAG_MUX@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_2
## %bb.18:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qmimux_rx_fixup                ## TAILCALL
LBB0_2:
	movq	_QMI_WWAN_FLAG_RAWIP@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	8(%r14), %rdi
	movb	(%rdi), %al
	andb	$-16, %al
	je	LBB0_9
## %bb.3:
	cmpb	$64, %al
	je	LBB0_4
## %bb.5:
	cmpb	$96, %al
	jne	LBB0_12
## %bb.6:
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_9:
	testl	%r13d, %r12d
	jne	LBB0_17
## %bb.10:
	callq	_is_multicast_ether_addr
	movl	$1, %r15d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movq	%r14, %rdi
	callq	_skb_reset_mac_header
	jmp	LBB0_15
LBB0_4:
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_htons
	testl	%r13d, %r12d
	je	LBB0_13
## %bb.8:
	movq	%r14, %rdi
	movq	%rax, %r15
	callq	_skb_reset_mac_header
	movq	(%rbx), %rax
	movq	%rax, 24(%r14)
	movq	%r15, 16(%r14)
	jmp	LBB0_16
LBB0_12:
	xorl	%r15d, %r15d
	testl	%r13d, %r12d
	sete	%r15b
	jmp	LBB0_17
LBB0_13:
	movq	%rax, %r12
	movq	%r14, %rdi
	callq	_skb_headroom
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_17
## %bb.14:
	movq	%r14, %rdi
	callq	_skb_push
	movq	%r14, %rdi
	callq	_skb_reset_mac_header
	movq	%r14, %rdi
	callq	_eth_hdr
	movq	%r12, 8(%rax)
	movq	%r14, %rdi
	callq	_eth_hdr
	movl	4(%rax), %edi
	callq	_eth_zero_addr
LBB0_15:
	movq	%r14, %rdi
	callq	_eth_hdr
	movl	(%rax), %edi
	movq	(%rbx), %rax
	movl	8(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_16:
	movl	$1, %r15d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_QMI_WWAN_FLAG_RAWIP,4,2        ## @QMI_WWAN_FLAG_RAWIP
	.comm	_QMI_WWAN_FLAG_MUX,4,2          ## @QMI_WWAN_FLAG_MUX
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.no_dead_strip	_qmi_wwan_rx_fixup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qmi_wwan_rx_fixup
_qmi_wwan_rx_fixup:                     ; @qmi_wwan_rx_fixup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x1]
	ldr	x9, [x0]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
LBB0_1:
	mov	w0, #0
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
Lloh0:
	adrp	x9, _QMI_WWAN_FLAG_MUX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _QMI_WWAN_FLAG_MUX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_qmimux_rx_fixup
LBB0_5:
Lloh3:
	adrp	x9, _QMI_WWAN_FLAG_RAWIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _QMI_WWAN_FLAG_RAWIP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w22, w9, w8
	ldr	x0, [x20, #8]
	ldr	w8, [x0]
	ands	w8, w8, #0xf0
	b.eq	LBB0_9
; %bb.6:
	cmp	w8, #64
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #96
	b.ne	LBB0_15
; %bb.8:
Lloh6:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
	cbnz	w22, LBB0_1
; %bb.10:
	bl	_is_multicast_ether_addr
	cbnz	w0, LBB0_19
; %bb.11:
	mov	x0, x20
	bl	_skb_reset_mac_header
	b	LBB0_18
LBB0_12:
Lloh8:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
LBB0_13:
	ldr	w0, [x8]
	bl	_htons
	mov	x21, x0
	mov	x0, x20
	cbz	w22, LBB0_16
; %bb.14:
	bl	_skb_reset_mac_header
	ldr	x8, [x19]
	stp	x21, x8, [x20, #16]
	b	LBB0_19
LBB0_15:
	cmp	w22, #0
	cset	w0, eq
	b	LBB0_2
LBB0_16:
	bl	_skb_headroom
Lloh10:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh12:
	ldr	x1, [x8]
	cmp	x0, x1
	b.lt	LBB0_1
; %bb.17:
	mov	x0, x20
	bl	_skb_push
	mov	x0, x20
	bl	_skb_reset_mac_header
	mov	x0, x20
	bl	_eth_hdr
	str	x21, [x0, #8]
	mov	x0, x20
	bl	_eth_hdr
	ldr	w0, [x0, #4]
	bl	_eth_zero_addr
LBB0_18:
	mov	x0, x20
	bl	_eth_hdr
	ldr	w0, [x0]
	ldr	x8, [x19]
	ldr	w1, [x8, #8]
Lloh13:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_19:
	mov	w0, #1
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QMI_WWAN_FLAG_RAWIP,4,2        ; @QMI_WWAN_FLAG_RAWIP
	.comm	_QMI_WWAN_FLAG_MUX,4,2          ; @QMI_WWAN_FLAG_MUX
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.no_dead_strip	_qmi_wwan_rx_fixup
.subsections_via_symbols
