	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsd_set80211
_bsd_set80211:                          ## @bsd_set80211
	.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
	movl	$-1, %ebx
	cmpq	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	movq	%rdi, %r14
	cmpq	$0, 24(%rdi)
	jne	LBB0_4
## %bb.2:
	movq	%rcx, %r13
	movl	%edx, %r15d
	movl	%esi, %r12d
	leaq	-80(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$32, %edx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_os_memset
	movl	-56(%rbp), %edi
	movl	16(%r14), %esi
	movl	$4, %edx
	callq	_os_strlcpy
	movl	%r12d, -80(%rbp)
	movl	%r15d, -76(%rbp)
	movq	%r13, -64(%rbp)
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, -72(%rbp)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movq	_SIOCS80211@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movq	_MSG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_wpa_printf
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SIOCS80211,4,2                 ## @SIOCS80211
	.comm	_MSG_ERROR,4,2                  ## @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ioctl[SIOCS80211, op=%u, val=%u, arg_len=%u]: %s"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsd_set80211
_bsd_set80211:                          ; @bsd_set80211
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x23, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
LBB0_2:
	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
LBB0_4:
	mov	x19, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_os_memset
	ldr	w0, [sp, #24]
	ldr	w1, [x23, #16]
	mov	w2, #4
	bl	_os_strlcpy
	stp	w21, w20, [sp]
	str	x22, [sp, #16]
	str	w19, [sp, #8]
	ldr	x8, [x23, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x8, _SIOCS80211@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIOCS80211@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	mov	x8, x0
	mov	w0, #0
	tbz	x8, #63, LBB0_3
; %bb.5:
Lloh3:
	adrp	x8, _MSG_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_ERROR@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
	mov	x5, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_wpa_printf
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SIOCS80211,4,2                 ; @SIOCS80211
	.comm	_MSG_ERROR,4,2                  ; @MSG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ioctl[SIOCS80211, op=%u, val=%u, arg_len=%u]: %s"

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