	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_iface_get_capability_proto
_ctrl_iface_get_capability_proto:       ## @ctrl_iface_get_capability_proto
	.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	%r8, %r15
	movq	%rcx, %r14
	testl	%edi, %edi
	js	LBB0_1
## %bb.3:
	movq	%rdx, %r12
	movl	(%rdx), %eax
	movq	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2@GOTPCREL(%rip), %rcx
	movq	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%r14, %rbx
	testl	%eax, %edx
	je	LBB0_6
## %bb.4:
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_os_snprintf
	movl	%eax, %r13d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.5:
	movslq	%r13d, %rbx
	addq	%r14, %rbx
	movl	(%r12), %eax
LBB0_6:
	movq	_WPA_DRIVER_CAPA_KEY_MGMT_WPA@GOTPCREL(%rip), %rcx
	movq	_WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_9
## %bb.7:
	addq	%r14, %r15
	subl	%ebx, %r15d
	cmpq	%r14, %rbx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_os_snprintf
	movl	%eax, %r12d
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movslq	%r12d, %rax
	addq	%rax, %rbx
LBB0_9:
	subl	%r14d, %ebx
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	jne	LBB0_10
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_os_strlcpy
	cmpq	%r15, %rax
	movl	$-1, %ebx
	cmovbl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSN WPA"

	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2,4,2 ## @WPA_DRIVER_CAPA_KEY_MGMT_WPA2
	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK,4,2 ## @WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK
L_.str.1:                               ## @.str.1
	.asciz	"%sRSN"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	" "

	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA,4,2 ## @WPA_DRIVER_CAPA_KEY_MGMT_WPA
	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK,4,2 ## @WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK
L_.str.4:                               ## @.str.4
	.asciz	"%sWPA"

	.no_dead_strip	_ctrl_iface_get_capability_proto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ctrl_iface_get_capability_proto
_ctrl_iface_get_capability_proto:       ; @ctrl_iface_get_capability_proto
	.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
	mov	x20, x4
	mov	x19, x3
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x22, x2
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _WPA_DRIVER_CAPA_KEY_MGMT_WPA2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_CAPA_KEY_MGMT_WPA2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh8:
	adrp	x3, l_.str.2@PAGE
Lloh9:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_os_snprintf
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_os_snprintf_error
	cbnz	x0, LBB0_5
; %bb.3:
	add	x21, x19, w21, sxtw
	ldr	w8, [x22]
	b	LBB0_7
LBB0_4:
	cbz	x1, LBB0_11
LBB0_5:
	mov	w0, #0
	b	LBB0_12
LBB0_6:
	mov	x21, x19
LBB0_7:
Lloh10:
	adrp	x9, _WPA_DRIVER_CAPA_KEY_MGMT_WPA@GOTPAGE
Lloh11:
	ldr	x9, [x9, _WPA_DRIVER_CAPA_KEY_MGMT_WPA@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
Lloh13:
	adrp	x10, _WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
Lloh16:
	adrp	x8, l_.str.2@PAGE
Lloh17:
	add	x8, x8, l_.str.2@PAGEOFF
	add	x9, x19, x20
	sub	w22, w9, w21
Lloh18:
	adrp	x9, l_.str.3@PAGE
Lloh19:
	add	x9, x9, l_.str.3@PAGEOFF
	cmp	x21, x19
	csel	x3, x8, x9, eq
Lloh20:
	adrp	x2, l_.str.4@PAGE
Lloh21:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_os_snprintf
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_os_snprintf_error
	cbnz	x0, LBB0_10
; %bb.9:
	add	x21, x21, w20, sxtw
LBB0_10:
	sub	w0, w21, w19
	b	LBB0_12
LBB0_11:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_os_strlcpy
	cmp	x0, x20
	csinv	w0, w0, wzr, lo
LBB0_12:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSN WPA"

	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2,4,2 ; @WPA_DRIVER_CAPA_KEY_MGMT_WPA2
	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK,4,2 ; @WPA_DRIVER_CAPA_KEY_MGMT_WPA2_PSK
l_.str.1:                               ; @.str.1
	.asciz	"%sRSN"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	" "

	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA,4,2 ; @WPA_DRIVER_CAPA_KEY_MGMT_WPA
	.comm	_WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK,4,2 ; @WPA_DRIVER_CAPA_KEY_MGMT_WPA_PSK
l_.str.4:                               ; @.str.4
	.asciz	"%sWPA"

	.no_dead_strip	_ctrl_iface_get_capability_proto
.subsections_via_symbols
