	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bsd_new_sta
_bsd_new_sta:                           ## @bsd_new_sta
	.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
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r12
	leaq	-56(%rbp), %r13
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	_IEEE80211_ADDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rsi
	callq	_memcpy
	movq	_IEEE80211_IOC_WPAIE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movl	$16, %ecx
	callq	_get80211var
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rax
	movl	4(%rax), %ecx
	leal	2(%rcx), %ebx
	xorl	%edx, %edx
	testl	%ecx, %ecx
	cmovel	%ecx, %ebx
	cmovneq	%rax, %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	xorl	%edx, %edx
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %ecx
	xorl	%r8d, %r8d
	callq	_drv_event_assoc
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDR_LEN,4,2         ## @IEEE80211_ADDR_LEN
	.comm	_IEEE80211_IOC_WPAIE,4,2        ## @IEEE80211_IOC_WPAIE
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to get WPA/RSN information element"

	.no_dead_strip	_bsd_new_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bsd_new_sta
_bsd_new_sta:                           ; @bsd_new_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #8]
Lloh0:
	adrp	x8, _IEEE80211_ADDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_ADDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x1, x19
	bl	_memcpy
Lloh3:
	adrp	x8, _IEEE80211_IOC_WPAIE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_IOC_WPAIE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x21
	mov	w3, #16
	bl	_get80211var
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x8, [sp]
	ldr	w9, [x8, #4]
	add	w10, w9, #2
	cmp	w9, #0
	csel	w3, wzr, w10, eq
	csel	x2, xzr, x8, eq
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	w3, #0
	mov	x2, #0
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_drv_event_assoc
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDR_LEN,4,2         ; @IEEE80211_ADDR_LEN
	.comm	_IEEE80211_IOC_WPAIE,4,2        ; @IEEE80211_IOC_WPAIE
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to get WPA/RSN information element"

	.no_dead_strip	_bsd_new_sta
.subsections_via_symbols
