	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_select_ap_group_cipher     ## -- Begin function wpa_select_ap_group_cipher
	.p2align	4, 0x90
_wpa_select_ap_group_cipher:            ## @wpa_select_ap_group_cipher
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %eax
	andl	$1, %eax
	negl	%eax
	andl	%esi, %eax
	shll	$30, %edi
	sarl	$31, %edi
	andl	%edx, %edi
	orl	%eax, %edi
	movq	_WPA_CIPHER_TKIP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%edi, %eax
	je	LBB0_1
LBB0_4:
	popq	%rbp
	retq
LBB0_1:
	movq	_WPA_CIPHER_CCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_WPA_CIPHER_GCMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	orl	%ecx, %edx
	movl	%edx, %esi
	andl	%edi, %esi
	cmpl	%eax, %esi
	je	LBB0_4
## %bb.2:
	movq	_WPA_CIPHER_GCMP_256@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, %esi
	orl	%eax, %esi
	andl	%edi, %esi
	cmpl	%eax, %esi
	je	LBB0_4
## %bb.3:
	movq	_WPA_CIPHER_CCMP_256@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %edx
	andl	%edi, %edx
	cmpl	%eax, %edx
	cmovel	%eax, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WPA_CIPHER_TKIP,4,2            ## @WPA_CIPHER_TKIP
	.comm	_WPA_CIPHER_CCMP,4,2            ## @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_GCMP,4,2            ## @WPA_CIPHER_GCMP
	.comm	_WPA_CIPHER_GCMP_256,4,2        ## @WPA_CIPHER_GCMP_256
	.comm	_WPA_CIPHER_CCMP_256,4,2        ## @WPA_CIPHER_CCMP_256
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wpa_select_ap_group_cipher     ; -- Begin function wpa_select_ap_group_cipher
	.p2align	2
_wpa_select_ap_group_cipher:            ; @wpa_select_ap_group_cipher
	.cfi_startproc
; %bb.0:
	sbfx	w8, w0, #0, #1
	and	w8, w8, w1
	lsl	w9, w0, #30
	and	w9, w2, w9, asr #31
	orr	w8, w8, w9
Lloh0:
	adrp	x9, _WPA_CIPHER_TKIP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WPA_CIPHER_TKIP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	tst	w0, w8
	b.eq	LBB0_2
LBB0_1:
	ret
LBB0_2:
Lloh3:
	adrp	x9, _WPA_CIPHER_CCMP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _WPA_CIPHER_CCMP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _WPA_CIPHER_GCMP@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WPA_CIPHER_GCMP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x10]
	orr	w10, w0, w9
	and	w11, w10, w8
	cmp	w11, w0
	b.eq	LBB0_1
; %bb.3:
Lloh9:
	adrp	x11, _WPA_CIPHER_GCMP_256@GOTPAGE
Lloh10:
	ldr	x11, [x11, _WPA_CIPHER_GCMP_256@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x11]
	orr	w11, w10, w0
	and	w11, w11, w8
	cmp	w11, w0
	b.eq	LBB0_1
; %bb.4:
Lloh12:
	adrp	x11, _WPA_CIPHER_CCMP_256@GOTPAGE
Lloh13:
	ldr	x11, [x11, _WPA_CIPHER_CCMP_256@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	orr	w10, w10, w11
	and	w8, w10, w8
	cmp	w8, w11
	csel	w0, w11, w9, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WPA_CIPHER_TKIP,4,2            ; @WPA_CIPHER_TKIP
	.comm	_WPA_CIPHER_CCMP,4,2            ; @WPA_CIPHER_CCMP
	.comm	_WPA_CIPHER_GCMP,4,2            ; @WPA_CIPHER_GCMP
	.comm	_WPA_CIPHER_GCMP_256,4,2        ; @WPA_CIPHER_GCMP_256
	.comm	_WPA_CIPHER_CCMP_256,4,2        ; @WPA_CIPHER_CCMP_256
.subsections_via_symbols
