	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_gpsk_select_csuite
_eap_gpsk_select_csuite:                ## @eap_gpsk_select_csuite
	.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, %rbx
	movq	%rsi, %r12
	shrq	$3, %rcx
	movq	_EAP_GPSK_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, (%rsi)
	movq	_EAP_GPSK_CIPHER_RESERVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rsi)
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	jle	LBB0_10
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, (%r12)
	movl	%r15d, 4(%r12)
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx,%r14,8), %edi
	callq	_WPA_GET_BE32
	movl	%eax, %r13d
	movl	(%rbx,%r14,8), %edi
	callq	_WPA_GET_BE16
	movl	%eax, %r15d
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_wpa_printf
	movl	(%r12), %eax
	movq	_EAP_GPSK_VENDOR_IETF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r12), %eax
	movq	_EAP_GPSK_CIPHER_RESERVED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_eap_gpsk_supported_ciphersuite
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r15d, %eax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_9:
	movl	(%r12), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_10:
	movl	4(%r12), %ecx
	movq	_EAP_GPSK_VENDOR_IETF@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jne	LBB0_13
## %bb.11:
	movq	_EAP_GPSK_CIPHER_RESERVED@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_13
## %bb.12:
	movl	(%rdi), %edi
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_wpa_msg
	movl	$-1, %ebx
	jmp	LBB0_14
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAP_GPSK_VENDOR_IETF,4,2       ## @EAP_GPSK_VENDOR_IETF
	.comm	_EAP_GPSK_CIPHER_RESERVED,4,2   ## @EAP_GPSK_CIPHER_RESERVED
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-GPSK: CSuite[%d]: %d:%d"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"EAP-GPSK: No supported ciphersuite found"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-GPSK: Selected ciphersuite %d:%d"

	.no_dead_strip	_eap_gpsk_select_csuite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_gpsk_select_csuite
_eap_gpsk_select_csuite:                ; @eap_gpsk_select_csuite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x8, x2
	mov	x20, x1
	lsr	x28, x3, #3
Lloh0:
	adrp	x26, _EAP_GPSK_VENDOR_IETF@GOTPAGE
Lloh1:
	ldr	x26, [x26, _EAP_GPSK_VENDOR_IETF@GOTPAGEOFF]
	ldr	w2, [x26]
Lloh2:
	adrp	x27, _EAP_GPSK_CIPHER_RESERVED@GOTPAGE
Lloh3:
	ldr	x27, [x27, _EAP_GPSK_CIPHER_RESERVED@GOTPAGEOFF]
	str	w2, [x1]
	ldr	w9, [x27]
	str	w9, [x1, #4]
Lloh4:
	adrp	x25, _MSG_DEBUG@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MSG_DEBUG@GOTPAGEOFF]
	cmp	w28, #1
	b.lt	LBB0_10
; %bb.1:
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	mov	w21, #0
	add	x19, x8, #4
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	w23, w24, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	add	x19, x19, #8
	cmp	w28, w21
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_WPA_GET_BE32
	mov	x23, x0
	ldur	w0, [x19, #-4]
	bl	_WPA_GET_BE16
	mov	x24, x0
	ldr	w0, [x25]
	str	x24, [sp]
	mov	x1, x22
	mov	x2, x21
	mov	x3, x23
	bl	_wpa_printf
	ldr	w8, [x20]
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	ldr	w9, [x27]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, x24
	bl	_eap_gpsk_supported_ciphersuite
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, w24
	b.ne	LBB0_3
	b	LBB0_2
LBB0_9:
	ldr	w2, [x20]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
LBB0_10:
	ldr	w8, [x26]
	ldr	w3, [x20, #4]
	ldr	w9, [x27]
	cmp	w2, w8
	ccmp	w3, w9, #0, eq
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x25]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	mov	w0, #0
	b	LBB0_13
LBB0_12:
	ldr	w0, [x0]
Lloh10:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x2, l_.str.1@PAGE
Lloh14:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_wpa_msg
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EAP_GPSK_VENDOR_IETF,4,2       ; @EAP_GPSK_VENDOR_IETF
	.comm	_EAP_GPSK_CIPHER_RESERVED,4,2   ; @EAP_GPSK_CIPHER_RESERVED
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-GPSK: CSuite[%d]: %d:%d"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"EAP-GPSK: No supported ciphersuite found"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-GPSK: Selected ciphersuite %d:%d"

	.no_dead_strip	_eap_gpsk_select_csuite
.subsections_via_symbols
