	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set80211bssid
_set80211bssid:                         ## @set80211bssid
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_isanyarg
	testl	%eax, %eax
	je	LBB0_1
## %bb.6:
	movq	%rsp, %r12
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	shll	$2, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	movq	_IEEE80211_IOC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rcx
	movl	%r14d, %edi
	xorl	%edx, %edx
	movq	%r15, %r8
	callq	_set80211
	movq	%r12, %rsp
	jmp	LBB0_7
LBB0_1:
	movq	%rbx, %rdi
	callq	_strlen
	leaq	2(%rax), %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_3:
	movb	$58, (%r15)
	movq	%r15, %rdi
	incq	%rdi
	movq	%rbx, %rsi
	callq	_strcpy
	movl	$16, -64(%rbp)
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_link_addr
	movq	%r15, %rdi
	callq	_free
	movq	-56(%rbp), %rbx
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rbx
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
	movq	(%r15), %rbx
LBB0_5:
	movq	_IEEE80211_IOC_BSSID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	-64(%rbp), %rdi
	callq	_LLADDR
	movl	%r14d, %edi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_set80211
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc failed"

	.comm	_IEEE80211_ADDR_LEN,8,3         ## @IEEE80211_ADDR_LEN
L_.str.1:                               ## @.str.1
	.asciz	"malformed link-level address"

	.comm	_IEEE80211_IOC_BSSID,4,2        ## @IEEE80211_IOC_BSSID
	.no_dead_strip	_set80211bssid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set80211bssid
_set80211bssid:                         ; @set80211bssid
	.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
	sub	sp, sp, #32
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_isanyarg
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, sp
Lloh3:
	adrp	x22, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh4:
	ldr	x22, [x22, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x12, [x22]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	lsl	w2, w12, #2
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh7:
	adrp	x8, _IEEE80211_IOC_BSSID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IEEE80211_IOC_BSSID@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	x3, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	x4, x20
	bl	_set80211
	mov	sp, x21
	b	LBB0_7
LBB0_2:
	mov	x0, x20
	bl	_strlen
	add	x0, x0, #2
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.3:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	w8, #58
	mov	x0, x21
	strb	w8, [x0], #1
	mov	x1, x20
	bl	_strcpy
	mov	w8, #16
	stur	w8, [x29, #-56]
	sub	x1, x29, #56
	mov	x0, x21
	bl	_link_addr
	mov	x0, x21
	bl	_free
	ldur	x20, [x29, #-48]
Lloh12:
	adrp	x21, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh13:
	ldr	x21, [x21, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
	ldr	x20, [x21]
LBB0_6:
Lloh16:
	adrp	x8, _IEEE80211_IOC_BSSID@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_IOC_BSSID@GOTPAGEOFF]
Lloh18:
	ldr	w21, [x8]
	sub	x0, x29, #56
	bl	_LLADDR
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	mov	x3, x20
	bl	_set80211
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	sub	sp, x29, #32
	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_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc failed"

	.comm	_IEEE80211_ADDR_LEN,8,3         ; @IEEE80211_ADDR_LEN
l_.str.1:                               ; @.str.1
	.asciz	"malformed link-level address"

	.comm	_IEEE80211_IOC_BSSID,4,2        ; @IEEE80211_IOC_BSSID
	.no_dead_strip	_set80211bssid
.subsections_via_symbols
