	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_get_mac_policy            ## -- Begin function wlan_get_mac_policy
	.p2align	4, 0x90
_wlan_get_mac_policy:                   ## @wlan_get_mac_policy
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_IEEE80211_MACCMD_POLICY@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	leaq	-80(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-64(%rbp), %edi
	movl	16(%r14), %esi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	_IEEE80211_IOC_MACCMD@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -80(%rbp)
	movq	(%r13), %rax
	movq	%rax, -72(%rbp)
	movq	_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SIOCG80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movl	$1, (%r14)
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_5
## %bb.2:
	movslq	%ebx, %rax
	leaq	l_switch.table.wlan_get_mac_policy(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_EINVAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_9
## %bb.4:
	movl	$1, (%r14)
	movq	_wlanMACAccessControlPolicy_open@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_wlanMACAccessControlPolicy_open@GOTPCREL(%rip), %rax
LBB0_6:
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
	movq	$0, -56(%rbp)
	movq	_IEEE80211_MACCMD_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movl	16(%r14), %edi
	movl	(%r12), %esi
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rdx
	leaq	-56(%rbp), %r8
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_wlan_ioctl
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rax
	shrq	$3, %rax
	movq	%rax, 8(%r14)
	jmp	LBB0_11
LBB0_9:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	16(%r14), %r15d
	movl	-80(%rbp), %r12d
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%eax, %r8d
	callq	_syslog
	movl	$0, (%r14)
LBB0_10:
	movl	$-1, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_MACCMD_POLICY,8,3    ## @IEEE80211_MACCMD_POLICY
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_IEEE80211_IOC_MACCMD,4,2       ## @IEEE80211_IOC_MACCMD
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCG80211,4,2                 ## @SIOCG80211
	.comm	_errno,8,3                      ## @errno
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface %s - get param: ioctl(%d) failed: %s"

	.comm	_wlanMACAccessControlPolicy_open,8,3 ## @wlanMACAccessControlPolicy_open
	.comm	_wlanMACAccessControlPolicy_allow,8,3 ## @wlanMACAccessControlPolicy_allow
	.comm	_wlanMACAccessControlPolicy_deny,8,3 ## @wlanMACAccessControlPolicy_deny
	.comm	_wlanMACAccessControlPolicy_radius,8,3 ## @wlanMACAccessControlPolicy_radius
	.comm	_IEEE80211_MACCMD_LIST,4,2      ## @IEEE80211_MACCMD_LIST
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.wlan_get_mac_policy
l_switch.table.wlan_get_mac_policy:
	.quad	_wlanMACAccessControlPolicy_radius
	.quad	_wlanMACAccessControlPolicy_open
	.quad	_wlanMACAccessControlPolicy_deny
	.quad	_wlanMACAccessControlPolicy_allow

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wlan_get_mac_policy            ; -- Begin function wlan_get_mac_policy
	.p2align	2
_wlan_get_mac_policy:                   ; @wlan_get_mac_policy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x22, _IEEE80211_MACCMD_POLICY@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IEEE80211_MACCMD_POLICY@GOTPAGEOFF]
	ldr	x21, [x22]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldr	w0, [sp, #24]
	ldr	w1, [x19, #16]
Lloh2:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_strlcpy
Lloh5:
	adrp	x20, _IEEE80211_IOC_MACCMD@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IEEE80211_IOC_MACCMD@GOTPAGEOFF]
	ldr	w8, [x20]
	str	w8, [sp, #8]
	ldr	x8, [x22]
	str	x8, [sp, #16]
Lloh7:
	adrp	x8, _sock@GOTPAGE
Lloh8:
	ldr	x8, [x8, _sock@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, _SIOCG80211@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SIOCG80211@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	sub	w8, w21, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.2:
Lloh13:
	adrp	x9, l_switch.table.wlan_get_mac_policy@PAGE
Lloh14:
	add	x9, x9, l_switch.table.wlan_get_mac_policy@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	b	LBB0_6
LBB0_3:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
Lloh21:
	adrp	x8, _wlanMACAccessControlPolicy_open@GOTPAGE
Lloh22:
	ldr	x8, [x8, _wlanMACAccessControlPolicy_open@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	b	LBB0_10
LBB0_5:
Lloh24:
	adrp	x8, _wlanMACAccessControlPolicy_open@GOTPAGE
Lloh25:
	ldr	x8, [x8, _wlanMACAccessControlPolicy_open@GOTPAGEOFF]
LBB0_6:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	str	xzr, [sp, #32]
Lloh26:
	adrp	x8, _IEEE80211_MACCMD_LIST@GOTPAGE
Lloh27:
	ldr	x8, [x8, _IEEE80211_MACCMD_LIST@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	stur	w8, [x29, #-36]
	ldr	w0, [x19, #16]
	ldr	w1, [x20]
	sub	x2, x29, #36
	add	x4, sp, #32
	mov	x3, #0
	mov	w5, #0
	bl	_wlan_ioctl
	tbnz	x0, #63, LBB0_9
; %bb.7:
	mov	w0, #0
	ldr	x8, [sp, #32]
	lsr	x8, x8, #3
	str	x8, [x19, #8]
	b	LBB0_10
LBB0_8:
Lloh29:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w20, [x8]
	ldr	w21, [x19, #16]
	ldr	w22, [sp, #8]
	bl	_strerror
	mov	x4, x0
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_syslog
	str	wzr, [x19]
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_MACCMD_POLICY,8,3    ; @IEEE80211_MACCMD_POLICY
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_IEEE80211_IOC_MACCMD,4,2       ; @IEEE80211_IOC_MACCMD
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCG80211,4,2                 ; @SIOCG80211
	.comm	_errno,8,3                      ; @errno
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface %s - get param: ioctl(%d) failed: %s"

	.comm	_wlanMACAccessControlPolicy_open,8,3 ; @wlanMACAccessControlPolicy_open
	.comm	_wlanMACAccessControlPolicy_allow,8,3 ; @wlanMACAccessControlPolicy_allow
	.comm	_wlanMACAccessControlPolicy_deny,8,3 ; @wlanMACAccessControlPolicy_deny
	.comm	_wlanMACAccessControlPolicy_radius,8,3 ; @wlanMACAccessControlPolicy_radius
	.comm	_IEEE80211_MACCMD_LIST,4,2      ; @IEEE80211_MACCMD_LIST
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.wlan_get_mac_policy
l_switch.table.wlan_get_mac_policy:
	.quad	_wlanMACAccessControlPolicy_radius
	.quad	_wlanMACAccessControlPolicy_open
	.quad	_wlanMACAccessControlPolicy_deny
	.quad	_wlanMACAccessControlPolicy_allow

.subsections_via_symbols
