	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_vlan
_get_vlan:                              ## @get_vlan
	.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	(%rdi), %rax
	movq	_NL80211_ATTR_STA_VLAN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	callq	_genl_info_net
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_nla_get_u32
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_dev_get_by_index
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movq	(%rax), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.6:
	cmpq	%r14, 8(%rcx)
	jne	LBB0_12
## %bb.7:
	movq	(%rcx), %rcx
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.8:
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_10
## %bb.9:
	movq	_NL80211_IFTYPE_P2P_GO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_12
LBB0_10:
	movq	%r15, %rdi
	callq	_netif_running
	testl	%eax, %eax
	jne	LBB0_2
## %bb.11:
	movq	_ENETDOWN@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_put
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
LBB0_2:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_13:
	negl	%ebx
	movl	%ebx, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_ATTR_STA_VLAN,8,3      ## @NL80211_ATTR_STA_VLAN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_P2P_GO,8,3      ## @NL80211_IFTYPE_P2P_GO
	.comm	_ENETDOWN,4,2                   ## @ENETDOWN
	.no_dead_strip	_get_vlan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_vlan
_get_vlan:                              ; @get_vlan
	.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, [x0]
Lloh0:
	adrp	x9, _NL80211_ATTR_STA_VLAN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_ATTR_STA_VLAN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x19, [x8, x9, lsl #3]
	cbz	x19, LBB0_6
; %bb.1:
	mov	x20, x1
	bl	_genl_info_net
	mov	x21, x0
	mov	x0, x19
	bl	_nla_get_u32
	mov	x1, x0
	mov	x0, x21
	bl	_dev_get_by_index
	cbz	x0, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x9, [x8, #8]
	cmp	x9, x20
	b.ne	LBB0_7
; %bb.4:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NL80211_IFTYPE_AP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _NL80211_IFTYPE_P2P_GO@GOTPAGE
Lloh10:
	ldr	x11, [x11, _NL80211_IFTYPE_P2P_GO@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_netif_running
	cbz	w0, LBB0_11
LBB0_6:
	mov	x0, x19
	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_7:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_dev_put
	b	LBB0_10
LBB0_9:
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
LBB0_10:
	neg	w0, w20
	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	_ERR_PTR
LBB0_11:
Lloh17:
	adrp	x8, _ENETDOWN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENETDOWN@GOTPAGEOFF]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_ATTR_STA_VLAN,8,3      ; @NL80211_ATTR_STA_VLAN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_P2P_GO,8,3      ; @NL80211_IFTYPE_P2P_GO
	.comm	_ENETDOWN,4,2                   ; @ENETDOWN
	.no_dead_strip	_get_vlan
.subsections_via_symbols
