	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ctrl_iface_get_capability_auth_alg
_ctrl_iface_get_capability_auth_alg:    ## @ctrl_iface_get_capability_auth_alg
	.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	%r9, %r15
	movq	%r8, %r14
	testl	%esi, %esi
	js	LBB0_1
## %bb.3:
	movq	%rcx, %r12
	movl	(%rcx), %eax
	movq	_WPA_DRIVER_AUTH_OPEN@GOTPCREL(%rip), %rcx
	movq	%r14, %rbx
	testl	%eax, (%rcx)
	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_13
## %bb.5:
	movslq	%r13d, %rbx
	addq	%r14, %rbx
	movl	(%r12), %eax
LBB0_6:
	addq	%r14, %r15
	movq	_WPA_DRIVER_AUTH_SHARED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.7:
	movl	%r15d, %r13d
	subl	%ebx, %r13d
	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	%r13d, %esi
	callq	_os_snprintf
	movl	%r13d, %edi
	movl	%eax, %r13d
	movl	%eax, %esi
	callq	_os_snprintf_error
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:
	movslq	%r13d, %rax
	addq	%rax, %rbx
	movl	(%r12), %eax
LBB0_9:
	movq	_WPA_DRIVER_AUTH_LEAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.10:
	subl	%ebx, %r15d
	cmpq	%r14, %rbx
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str.5(%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_12
## %bb.11:
	movslq	%r12d, %rax
	addq	%rax, %rbx
LBB0_12:
	subl	%r14d, %ebx
	jmp	LBB0_13
LBB0_1:
	xorl	%ebx, %ebx
	testq	%rdx, %rdx
	jne	LBB0_13
## %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_13:
	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	"OPEN SHARED LEAP"

	.comm	_WPA_DRIVER_AUTH_OPEN,4,2       ## @WPA_DRIVER_AUTH_OPEN
L_.str.1:                               ## @.str.1
	.asciz	"%sOPEN"

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

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

	.comm	_WPA_DRIVER_AUTH_SHARED,4,2     ## @WPA_DRIVER_AUTH_SHARED
L_.str.4:                               ## @.str.4
	.asciz	"%sSHARED"

	.comm	_WPA_DRIVER_AUTH_LEAP,4,2       ## @WPA_DRIVER_AUTH_LEAP
L_.str.5:                               ## @.str.5
	.asciz	"%sLEAP"

	.comm	_WPA_DRIVER_FLAGS_SAE,4,2       ## @WPA_DRIVER_FLAGS_SAE
	.no_dead_strip	_ctrl_iface_get_capability_auth_alg
.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_auth_alg
_ctrl_iface_get_capability_auth_alg:    ; @ctrl_iface_get_capability_auth_alg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x5
	mov	x19, x4
	tbnz	w1, #31, LBB0_4
; %bb.1:
	mov	x21, x3
	ldr	w8, [x3]
Lloh0:
	adrp	x9, _WPA_DRIVER_AUTH_OPEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_DRIVER_AUTH_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.2:
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh5:
	adrp	x3, l_.str.2@PAGE
Lloh6:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x1, x22
	bl	_os_snprintf
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	bl	_os_snprintf_error
	cbnz	x0, LBB0_5
; %bb.3:
	add	x20, x19, w20, sxtw
	ldr	w8, [x21]
	b	LBB0_7
LBB0_4:
	cbz	x2, LBB0_14
LBB0_5:
	mov	w0, #0
	b	LBB0_15
LBB0_6:
	mov	x20, x19
LBB0_7:
	add	x24, x19, x22
Lloh7:
	adrp	x25, l_.str.2@PAGE
Lloh8:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh9:
	adrp	x9, _WPA_DRIVER_AUTH_SHARED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WPA_DRIVER_AUTH_SHARED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x26, l_.str.3@PAGE
Lloh13:
	add	x26, x26, l_.str.3@PAGEOFF
	tst	w9, w8
	b.eq	LBB0_10
; %bb.8:
	sub	w23, w24, w20
	cmp	x20, x19
	csel	x3, x25, x26, eq
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@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_13
; %bb.9:
	add	x20, x20, w22, sxtw
	ldr	w8, [x21]
LBB0_10:
Lloh16:
	adrp	x9, _WPA_DRIVER_AUTH_LEAP@GOTPAGE
Lloh17:
	ldr	x9, [x9, _WPA_DRIVER_AUTH_LEAP@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	sub	w22, w24, w20
	cmp	x20, x19
	csel	x3, x25, x26, eq
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@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_13
; %bb.12:
	add	x20, x20, w21, sxtw
LBB0_13:
	sub	w0, w20, w19
	b	LBB0_15
LBB0_14:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_os_strlcpy
	cmp	x0, x22
	csinv	w0, w0, wzr, lo
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OPEN SHARED LEAP"

	.comm	_WPA_DRIVER_AUTH_OPEN,4,2       ; @WPA_DRIVER_AUTH_OPEN
l_.str.1:                               ; @.str.1
	.asciz	"%sOPEN"

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

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

	.comm	_WPA_DRIVER_AUTH_SHARED,4,2     ; @WPA_DRIVER_AUTH_SHARED
l_.str.4:                               ; @.str.4
	.asciz	"%sSHARED"

	.comm	_WPA_DRIVER_AUTH_LEAP,4,2       ; @WPA_DRIVER_AUTH_LEAP
l_.str.5:                               ; @.str.5
	.asciz	"%sLEAP"

	.comm	_WPA_DRIVER_FLAGS_SAE,4,2       ; @WPA_DRIVER_FLAGS_SAE
	.no_dead_strip	_ctrl_iface_get_capability_auth_alg
.subsections_via_symbols
