	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function typhoon_vlan_rx_register
_typhoon_vlan_rx_register:              ## @typhoon_vlan_rx_register
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_bh
	cmpq	$0, 8(%rbx)
	setne	%al
	testq	%r14, %r14
	sete	%cl
	xorb	%al, %cl
	jne	LBB0_7
## %bb.1:
	movq	_TYPHOON_OFFLOAD_VLAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	orl	%eax, 20(%rbx)
	jmp	LBB0_4
LBB0_3:
	notl	%eax
	andl	%eax, 20(%rbx)
LBB0_4:
	movq	_TYPHOON_CMD_SET_OFFLOAD_TASKS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %r15
	movq	%r15, %rdi
	callq	_INIT_COMMAND_WITH_RESPONSE
	movl	20(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	%eax, -32(%rbp)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	%rbx, %rdi
	movl	$1, %esi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_typhoon_issue_command
	testl	%eax, %eax
	jns	LBB0_6
## %bb.5:
	movl	16(%rbx), %esi
	negl	%eax
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_printk
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_lock_bh
LBB0_7:
	movq	%r14, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TYPHOON_OFFLOAD_VLAN,4,2       ## @TYPHOON_OFFLOAD_VLAN
	.comm	_TYPHOON_CMD_SET_OFFLOAD_TASKS,4,2 ## @TYPHOON_CMD_SET_OFFLOAD_TASKS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: vlan offload error %d\n"

	.no_dead_strip	_typhoon_vlan_rx_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function typhoon_vlan_rx_register
_typhoon_vlan_rx_register:              ; @typhoon_vlan_rx_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	bl	_netdev_priv
	mov	x20, x0
	bl	_spin_lock_bh
	ldr	x8, [x20, #8]
	cmp	x8, #0
	cset	w8, ne
	cmp	x19, #0
	cset	w9, eq
	eor	w8, w9, w8
	tbnz	w8, #0, LBB0_7
; %bb.1:
Lloh0:
	adrp	x8, _TYPHOON_OFFLOAD_VLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TYPHOON_OFFLOAD_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x19, LBB0_3
; %bb.2:
	ldr	w9, [x20, #20]
	orr	w8, w9, w8
	b	LBB0_4
LBB0_3:
	ldr	w9, [x20, #20]
	bic	w8, w9, w8
LBB0_4:
	str	w8, [x20, #20]
Lloh3:
	adrp	x8, _TYPHOON_CMD_SET_OFFLOAD_TASKS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TYPHOON_CMD_SET_OFFLOAD_TASKS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_INIT_COMMAND_WITH_RESPONSE
	ldr	w8, [x20, #20]
	stp	w8, w8, [sp, #8]
	mov	x0, x20
	bl	_spin_unlock_bh
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #1
	mov	w3, #0
	mov	x4, #0
	bl	_typhoon_issue_command
	tbz	w0, #31, LBB0_6
; %bb.5:
	ldr	w1, [x20, #16]
	neg	w2, w0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
LBB0_6:
	mov	x0, x20
	bl	_spin_lock_bh
LBB0_7:
	str	x19, [x20, #8]
	mov	x0, x20
	bl	_spin_unlock_bh
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TYPHOON_OFFLOAD_VLAN,4,2       ; @TYPHOON_OFFLOAD_VLAN
	.comm	_TYPHOON_CMD_SET_OFFLOAD_TASKS,4,2 ; @TYPHOON_CMD_SET_OFFLOAD_TASKS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: vlan offload error %d\n"

	.no_dead_strip	_typhoon_vlan_rx_register
.subsections_via_symbols
