	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostap_auth_open
_hostap_auth_open:                      ## @hostap_auth_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	24(%rdi), %r15
	movq	(%r15), %rsi
	movq	_IEEE80211_S_RUN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %rsi
	sete	%dil
	callq	_KASSERT
	movq	(%rbx), %r9
	movq	_IEEE80211_AUTH_SHARED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r9
	jne	LBB0_4
## %bb.1:
	movq	_IEEE80211_MSG_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %r8
	movq	%r15, %rdi
	callq	_IEEE80211_DISCARD_MAC
	incl	24(%r15)
	movq	16(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movq	_M_80211_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_IEEE80211_FREE
	movq	$0, 16(%rbx)
LBB0_3:
	movl	(%r12), %esi
	movq	_IEEE80211_FC0_SUBTYPE_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%r14d
	movq	_IEEE80211_STATUS_ALG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	shll	$16, %ecx
	orl	%r14d, %ecx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_send_error           ## TAILCALL
LBB0_4:
	movq	_IEEE80211_AUTH_OPEN_REQUEST@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_5
## %bb.6:
	cmpq	%rbx, 16(%r15)
	je	LBB0_7
## %bb.8:
	movq	_IEEE80211_NODE_AREF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_ieee80211_ref_node
	jmp	LBB0_10
LBB0_5:
	incl	24(%r15)
	jmp	LBB0_13
LBB0_7:
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_ieee80211_dup_bss
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
LBB0_10:
	movq	_IEEE80211_NODE_AREF@GOTPCREL(%rip), %rax
	movl	8(%rbx), %ecx
	orl	(%rax), %ecx
	movq	_IEEE80211_NODE_ASSOCID@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	*(%rax)
	movq	_IEEE80211_MACCMD_POLICY_RADIUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.14:
	movq	_IEEE80211_MSG_AUTH@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_ACL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	12(%rbx), %edx
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.4(%rip), %r8
	movq	%r15, %rdi
	callq	_IEEE80211_NOTE_MAC
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_notify_node_auth     ## TAILCALL
LBB0_12:
	movq	_IEEE80211_FC0_SUBTYPE_AUTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	incl	%r14d
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_IEEE80211_SEND_MGMT
	movq	_IEEE80211_MSG_DEBUG@GOTPCREL(%rip), %rax
	movq	_IEEE80211_MSG_AUTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	12(%rbx), %edx
	leaq	L_.str.3(%rip), %rcx
	leaq	L_.str.5(%rip), %r8
	movq	%r15, %rdi
	callq	_IEEE80211_NOTE_MAC
	movq	(%rbx), %rax
	movq	_IEEE80211_AUTH_8021X@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_node_authorize       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_S_RUN,8,3            ## @IEEE80211_S_RUN
	.comm	_IEEE80211_AUTH_SHARED,8,3      ## @IEEE80211_AUTH_SHARED
	.comm	_IEEE80211_MSG_AUTH,4,2         ## @IEEE80211_MSG_AUTH
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"open auth"

L_.str.2:                               ## @.str.2
	.asciz	"bad sta auth mode %u"

	.comm	_M_80211_NODE,4,2               ## @M_80211_NODE
	.comm	_IEEE80211_FC0_SUBTYPE_AUTH,4,2 ## @IEEE80211_FC0_SUBTYPE_AUTH
	.comm	_IEEE80211_STATUS_ALG,4,2       ## @IEEE80211_STATUS_ALG
	.comm	_IEEE80211_AUTH_OPEN_REQUEST,4,2 ## @IEEE80211_AUTH_OPEN_REQUEST
	.comm	_IEEE80211_NODE_AREF,4,2        ## @IEEE80211_NODE_AREF
	.comm	_IEEE80211_NODE_ASSOCID,4,2     ## @IEEE80211_NODE_ASSOCID
	.comm	_IEEE80211_MACCMD_POLICY_RADIUS,8,3 ## @IEEE80211_MACCMD_POLICY_RADIUS
	.comm	_IEEE80211_MSG_ACL,4,2          ## @IEEE80211_MSG_ACL
L_.str.3:                               ## @.str.3
	.asciz	"%s"

L_.str.4:                               ## @.str.4
	.asciz	"station authentication defered (radius acl)"

	.comm	_IEEE80211_MSG_DEBUG,4,2        ## @IEEE80211_MSG_DEBUG
L_.str.5:                               ## @.str.5
	.asciz	"station authenticated (open)"

	.comm	_IEEE80211_AUTH_8021X,8,3       ## @IEEE80211_AUTH_8021X
	.no_dead_strip	_hostap_auth_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostap_auth_open
_hostap_auth_open:                      ; @hostap_auth_open
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	x1, [x20]
Lloh0:
	adrp	x8, _IEEE80211_S_RUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_S_RUN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x1, x8
	cset	w0, eq
	bl	_KASSERT
	ldr	x5, [x19]
Lloh3:
	adrp	x8, _IEEE80211_AUTH_SHARED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_AUTH_SHARED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x5, x8
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _IEEE80211_MSG_AUTH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_MSG_AUTH@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
Lloh11:
	adrp	x4, l_.str.2@PAGE
Lloh12:
	add	x4, x4, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_IEEE80211_DISCARD_MAC
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_3
; %bb.2:
Lloh13:
	adrp	x8, _M_80211_NODE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _M_80211_NODE@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_IEEE80211_FREE
	str	xzr, [x19, #16]
LBB0_3:
	ldr	w1, [x22]
Lloh16:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_AUTH@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_AUTH@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
	add	w8, w21, #1
Lloh19:
	adrp	x9, _IEEE80211_STATUS_ALG@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IEEE80211_STATUS_ALG@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w3, w8, w9, lsl #16
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ieee80211_send_error
LBB0_4:
Lloh22:
	adrp	x8, _IEEE80211_AUTH_OPEN_REQUEST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IEEE80211_AUTH_OPEN_REQUEST@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x20, #16]
Lloh25:
	adrp	x23, _IEEE80211_NODE_AREF@GOTPAGE
Lloh26:
	ldr	x23, [x23, _IEEE80211_NODE_AREF@GOTPAGEOFF]
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.6:
	ldr	w8, [x19, #8]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.7:
	mov	x0, x19
	bl	_ieee80211_ref_node
	b	LBB0_10
LBB0_8:
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	b	LBB0_14
LBB0_9:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ieee80211_dup_bss
	mov	x19, x0
	cbz	x0, LBB0_14
LBB0_10:
	ldr	w8, [x23]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
Lloh27:
	adrp	x9, _IEEE80211_NODE_ASSOCID@GOTPAGE
Lloh28:
	ldr	x9, [x9, _IEEE80211_NODE_ASSOCID@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.11:
	ldr	x8, [x8]
	mov	x0, x20
	blr	x8
Lloh30:
	adrp	x8, _IEEE80211_MACCMD_POLICY_RADIUS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _IEEE80211_MACCMD_POLICY_RADIUS@GOTPAGEOFF]
Lloh32:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.12:
Lloh33:
	adrp	x8, _IEEE80211_MSG_AUTH@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IEEE80211_MSG_AUTH@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
Lloh36:
	adrp	x9, _IEEE80211_MSG_ACL@GOTPAGE
Lloh37:
	ldr	x9, [x9, _IEEE80211_MSG_ACL@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x19, #12]
Lloh39:
	adrp	x3, l_.str.3@PAGE
Lloh40:
	add	x3, x3, l_.str.3@PAGEOFF
Lloh41:
	adrp	x4, l_.str.4@PAGE
Lloh42:
	add	x4, x4, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_IEEE80211_NOTE_MAC
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ieee80211_notify_node_auth
LBB0_13:
Lloh43:
	adrp	x8, _IEEE80211_FC0_SUBTYPE_AUTH@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IEEE80211_FC0_SUBTYPE_AUTH@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	add	w2, w21, #1
	mov	x0, x19
	bl	_IEEE80211_SEND_MGMT
Lloh46:
	adrp	x8, _IEEE80211_MSG_DEBUG@GOTPAGE
Lloh47:
	ldr	x8, [x8, _IEEE80211_MSG_DEBUG@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
Lloh49:
	adrp	x9, _IEEE80211_MSG_AUTH@GOTPAGE
Lloh50:
	ldr	x9, [x9, _IEEE80211_MSG_AUTH@GOTPAGEOFF]
Lloh51:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w2, [x19, #12]
Lloh52:
	adrp	x3, l_.str.3@PAGE
Lloh53:
	add	x3, x3, l_.str.3@PAGEOFF
Lloh54:
	adrp	x4, l_.str.5@PAGE
Lloh55:
	add	x4, x4, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_IEEE80211_NOTE_MAC
	ldr	x8, [x19]
Lloh56:
	adrp	x9, _IEEE80211_AUTH_8021X@GOTPAGE
Lloh57:
	ldr	x9, [x9, _IEEE80211_AUTH_8021X@GOTPAGEOFF]
Lloh58:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_15
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_15:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ieee80211_node_authorize
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_S_RUN,8,3            ; @IEEE80211_S_RUN
	.comm	_IEEE80211_AUTH_SHARED,8,3      ; @IEEE80211_AUTH_SHARED
	.comm	_IEEE80211_MSG_AUTH,4,2         ; @IEEE80211_MSG_AUTH
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"open auth"

l_.str.2:                               ; @.str.2
	.asciz	"bad sta auth mode %u"

	.comm	_M_80211_NODE,4,2               ; @M_80211_NODE
	.comm	_IEEE80211_FC0_SUBTYPE_AUTH,4,2 ; @IEEE80211_FC0_SUBTYPE_AUTH
	.comm	_IEEE80211_STATUS_ALG,4,2       ; @IEEE80211_STATUS_ALG
	.comm	_IEEE80211_AUTH_OPEN_REQUEST,4,2 ; @IEEE80211_AUTH_OPEN_REQUEST
	.comm	_IEEE80211_NODE_AREF,4,2        ; @IEEE80211_NODE_AREF
	.comm	_IEEE80211_NODE_ASSOCID,4,2     ; @IEEE80211_NODE_ASSOCID
	.comm	_IEEE80211_MACCMD_POLICY_RADIUS,8,3 ; @IEEE80211_MACCMD_POLICY_RADIUS
	.comm	_IEEE80211_MSG_ACL,4,2          ; @IEEE80211_MSG_ACL
l_.str.3:                               ; @.str.3
	.asciz	"%s"

l_.str.4:                               ; @.str.4
	.asciz	"station authentication defered (radius acl)"

	.comm	_IEEE80211_MSG_DEBUG,4,2        ; @IEEE80211_MSG_DEBUG
l_.str.5:                               ; @.str.5
	.asciz	"station authenticated (open)"

	.comm	_IEEE80211_AUTH_8021X,8,3       ; @IEEE80211_AUTH_8021X
	.no_dead_strip	_hostap_auth_open
.subsections_via_symbols
