	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wlan_ioctl
_wlan_ioctl:                            ## @wlan_ioctl
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %rbx
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	-52(%rbp), %edi
	movq	_IFNAMSIZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	callq	_strlcpy
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -56(%rbp)
	movq	%rbx, %r15
	movl	(%r12), %eax
	movl	%eax, -80(%rbp)
	movq	(%rbx), %rax
	movq	%rax, -72(%rbp)
	movq	%r14, -64(%rbp)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	_sock@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testl	%ebx, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_SIOCG80211@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SIOCS80211@GOTPCREL(%rip), %rax
LBB0_3:
	leaq	-80(%rbp), %rdx
	movl	(%rax), %esi
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	-72(%rbp), %rax
	movq	%rax, (%r15)
	movl	-80(%rbp), %eax
	movl	%eax, (%r12)
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	testl	%ebx, %ebx
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rbx
	cmoveq	%rax, %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_syslog
	movl	$-1, %eax
LBB0_6:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IFNAMSIZ,4,2                   ## @IFNAMSIZ
	.comm	_sock,4,2                       ## @sock
	.comm	_SIOCS80211,4,2                 ## @SIOCS80211
	.comm	_SIOCG80211,4,2                 ## @SIOCG80211
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"iface %s - %s param: ioctl(%d) failed: %s"

L_.str.1:                               ## @.str.1
	.asciz	"set"

L_.str.2:                               ## @.str.2
	.asciz	"get"

	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_wlan_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wlan_ioctl
_wlan_ioctl:                            ; @wlan_ioctl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x23, x4
	mov	x24, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w0, [sp, #28]
Lloh0:
	adrp	x8, _IFNAMSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IFNAMSIZ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strlcpy
	str	w19, [sp, #24]
	ldr	w8, [x22]
	str	w8, [sp]
	ldr	x8, [x23]
	stp	x8, x24, [sp, #8]
Lloh3:
	adrp	x8, _sock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _sock@GOTPAGEOFF]
Lloh5:
	adrp	x9, _SIOCS80211@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SIOCS80211@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _SIOCG80211@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIOCG80211@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x8, x9, eq
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	x8, [sp, #8]
	str	x8, [x23]
	ldr	w8, [sp]
	str	w8, [x22]
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh12:
	adrp	x9, l_.str.1@PAGE
Lloh13:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh16:
	ldr	w22, [x8]
	cmp	w21, #0
	csel	x21, x10, x9, eq
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_strerror
	mov	x5, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x21
	mov	x4, x19
	bl	_syslog
	mov	w0, #-1
LBB0_3:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IFNAMSIZ,4,2                   ; @IFNAMSIZ
	.comm	_sock,4,2                       ; @sock
	.comm	_SIOCS80211,4,2                 ; @SIOCS80211
	.comm	_SIOCG80211,4,2                 ; @SIOCG80211
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"iface %s - %s param: ioctl(%d) failed: %s"

l_.str.1:                               ; @.str.1
	.asciz	"set"

l_.str.2:                               ; @.str.2
	.asciz	"get"

	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_wlan_ioctl
.subsections_via_symbols
