	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hostapd_ctrl_iface_get_key_mgmt
_hostapd_ctrl_iface_get_key_mgmt:       ## @hostapd_ctrl_iface_get_key_mgmt
	.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
	pushq	%rax
	.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, %rbx
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_WPA_ASSERT
	movq	(%r12), %rax
	movl	(%rax), %eax
	movq	_WPA_KEY_MGMT_PSK@GOTPCREL(%rip), %rcx
	movq	%rbx, %r13
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_os_snprintf
	movl	%eax, %r14d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_19
## %bb.2:
	movslq	%r14d, %r13
	addq	%rbx, %r13
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_3:
	addq	%rbx, %r15
	movq	_WPA_KEY_MGMT_IEEE8021X@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_7
## %bb.4:
	movl	%r15d, %r14d
	subl	%r13d, %r14d
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movslq	%ebx, %rax
	addq	%rax, %r13
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_7:
	movq	_WPA_KEY_MGMT_IEEE8021X_SUITE_B@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.8:
	movl	%r15d, %ebx
	subl	%r13d, %ebx
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_os_snprintf
	movl	%eax, %r14d
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_5
## %bb.10:
	movslq	%r14d, %rax
	addq	%rax, %r13
	movq	(%r12), %rax
	movl	(%rax), %eax
LBB0_11:
	movq	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.12:
	subl	%r13d, %r15d
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_os_snprintf
	movl	%eax, %ebx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	je	LBB0_14
LBB0_5:
	subl	-48(%rbp), %r13d                ## 4-byte Folded Reload
	jmp	LBB0_19
LBB0_14:
	movslq	%ebx, %rax
	addq	%rax, %r13
LBB0_15:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r13
	jbe	LBB0_18
## %bb.16:
	cmpb	$32, -1(%r13)
	jne	LBB0_18
## %bb.17:
	decq	%r13
	movb	$0, (%r13)
LBB0_18:
	subl	%eax, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_KEY_MGMT_PSK,4,2           ## @WPA_KEY_MGMT_PSK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WPA-PSK "

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ## @WPA_KEY_MGMT_IEEE8021X
L_.str.1:                               ## @.str.1
	.asciz	"WPA-EAP "

	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SUITE_B
L_.str.2:                               ## @.str.2
	.asciz	"WPA-EAP-SUITE-B "

	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SUITE_B_192
L_.str.3:                               ## @.str.3
	.asciz	"WPA-EAP-SUITE-B-192 "

	.comm	_WPA_KEY_MGMT_DPP,4,2           ## @WPA_KEY_MGMT_DPP
	.comm	_WPA_KEY_MGMT_FILS_SHA256,4,2   ## @WPA_KEY_MGMT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FILS_SHA384,4,2   ## @WPA_KEY_MGMT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA256,4,2 ## @WPA_KEY_MGMT_FT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA384,4,2 ## @WPA_KEY_MGMT_FT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X,4,2  ## @WPA_KEY_MGMT_FT_IEEE8021X
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X_SHA384,4,2 ## @WPA_KEY_MGMT_FT_IEEE8021X_SHA384
	.comm	_WPA_KEY_MGMT_FT_PSK,4,2        ## @WPA_KEY_MGMT_FT_PSK
	.comm	_WPA_KEY_MGMT_FT_SAE,4,2        ## @WPA_KEY_MGMT_FT_SAE
	.comm	_WPA_KEY_MGMT_IEEE8021X_SHA256,4,2 ## @WPA_KEY_MGMT_IEEE8021X_SHA256
	.comm	_WPA_KEY_MGMT_OWE,4,2           ## @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_PSK_SHA256,4,2    ## @WPA_KEY_MGMT_PSK_SHA256
	.comm	_WPA_KEY_MGMT_SAE,4,2           ## @WPA_KEY_MGMT_SAE
	.no_dead_strip	_hostapd_ctrl_iface_get_key_mgmt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hostapd_ctrl_iface_get_key_mgmt
_hostapd_ctrl_iface_get_key_mgmt:       ; @hostapd_ctrl_iface_get_key_mgmt
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_WPA_ASSERT
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _WPA_KEY_MGMT_PSK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_KEY_MGMT_PSK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_os_snprintf
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_os_snprintf_error
	cbz	x0, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_18
LBB0_3:
	mov	x20, x19
	b	LBB0_5
LBB0_4:
	add	x20, x19, w20, sxtw
	ldr	x8, [x21]
	ldr	w8, [x8]
LBB0_5:
	add	x24, x19, x22
Lloh5:
	adrp	x9, _WPA_KEY_MGMT_IEEE8021X@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WPA_KEY_MGMT_IEEE8021X@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	sub	w23, w24, w20
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_17
; %bb.7:
	add	x20, x20, w22, sxtw
	ldr	x8, [x21]
	ldr	w8, [x8]
LBB0_8:
Lloh10:
	adrp	x9, _WPA_KEY_MGMT_IEEE8021X_SUITE_B@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WPA_KEY_MGMT_IEEE8021X_SUITE_B@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.9:
	sub	w23, w24, w20
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	mov	x1, x23
	bl	_os_snprintf
	mov	x22, x0
	mov	x0, x23
	mov	x1, x22
	bl	_os_snprintf_error
	cbnz	x0, LBB0_17
; %bb.10:
	add	x20, x20, w22, sxtw
	ldr	x8, [x21]
	ldr	w8, [x8]
LBB0_11:
Lloh15:
	adrp	x9, _WPA_KEY_MGMT_IEEE8021X_SUITE_B_192@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WPA_KEY_MGMT_IEEE8021X_SUITE_B_192@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.12:
	sub	w22, w24, w20
Lloh18:
	adrp	x2, l_.str.3@PAGE
Lloh19:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x1, x22
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x22
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_17
; %bb.13:
	add	x20, x20, w21, sxtw
LBB0_14:
	cmp	x20, x19
	b.ls	LBB0_17
; %bb.15:
	mov	x8, x20
	ldrb	w9, [x8, #-1]!
	cmp	w9, #32
	b.ne	LBB0_17
; %bb.16:
	strb	wzr, [x8]
	mov	x20, x8
LBB0_17:
	sub	w0, w20, w19
LBB0_18:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_KEY_MGMT_PSK,4,2           ; @WPA_KEY_MGMT_PSK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WPA-PSK "

	.comm	_WPA_KEY_MGMT_IEEE8021X,4,2     ; @WPA_KEY_MGMT_IEEE8021X
l_.str.1:                               ; @.str.1
	.asciz	"WPA-EAP "

	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SUITE_B
l_.str.2:                               ; @.str.2
	.asciz	"WPA-EAP-SUITE-B "

	.comm	_WPA_KEY_MGMT_IEEE8021X_SUITE_B_192,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SUITE_B_192
l_.str.3:                               ; @.str.3
	.asciz	"WPA-EAP-SUITE-B-192 "

	.comm	_WPA_KEY_MGMT_DPP,4,2           ; @WPA_KEY_MGMT_DPP
	.comm	_WPA_KEY_MGMT_FILS_SHA256,4,2   ; @WPA_KEY_MGMT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FILS_SHA384,4,2   ; @WPA_KEY_MGMT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA256,4,2 ; @WPA_KEY_MGMT_FT_FILS_SHA256
	.comm	_WPA_KEY_MGMT_FT_FILS_SHA384,4,2 ; @WPA_KEY_MGMT_FT_FILS_SHA384
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X,4,2  ; @WPA_KEY_MGMT_FT_IEEE8021X
	.comm	_WPA_KEY_MGMT_FT_IEEE8021X_SHA384,4,2 ; @WPA_KEY_MGMT_FT_IEEE8021X_SHA384
	.comm	_WPA_KEY_MGMT_FT_PSK,4,2        ; @WPA_KEY_MGMT_FT_PSK
	.comm	_WPA_KEY_MGMT_FT_SAE,4,2        ; @WPA_KEY_MGMT_FT_SAE
	.comm	_WPA_KEY_MGMT_IEEE8021X_SHA256,4,2 ; @WPA_KEY_MGMT_IEEE8021X_SHA256
	.comm	_WPA_KEY_MGMT_OWE,4,2           ; @WPA_KEY_MGMT_OWE
	.comm	_WPA_KEY_MGMT_PSK_SHA256,4,2    ; @WPA_KEY_MGMT_PSK_SHA256
	.comm	_WPA_KEY_MGMT_SAE,4,2           ; @WPA_KEY_MGMT_SAE
	.no_dead_strip	_hostapd_ctrl_iface_get_key_mgmt
.subsections_via_symbols
