	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_set_key_mgt
_cfg80211_set_key_mgt:                  ## @cfg80211_set_key_mgt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IW_AUTH_KEY_MGMT_802_1X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IW_AUTH_KEY_MGMT_PSK@GOTPCREL(%rip), %r8
	movl	(%r8), %eax
	movl	%eax, %ecx
	orl	%edx, %ecx
	notl	%ecx
	testl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_2:
	testl	%esi, %edx
	je	LBB0_3
## %bb.4:
	movq	_WLAN_AKM_SUITE_8021X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdi), %rcx
	movl	%eax, (%rcx)
	movl	(%r8), %eax
	movl	$1, %ecx
	testl	%esi, %eax
	je	LBB0_7
LBB0_6:
	movq	_WLAN_AKM_SUITE_PSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	8(%rdi), %rdx
	movl	%ecx, %esi
	movl	%eax, (%rdx,%rsi,4)
	incl	%ecx
LBB0_7:
	movl	%ecx, (%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_3:
	xorl	%ecx, %ecx
	testl	%esi, %eax
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_AUTH_KEY_MGMT_802_1X,4,2    ## @IW_AUTH_KEY_MGMT_802_1X
	.comm	_IW_AUTH_KEY_MGMT_PSK,4,2       ## @IW_AUTH_KEY_MGMT_PSK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLAN_AKM_SUITE_8021X,4,2       ## @WLAN_AKM_SUITE_8021X
	.comm	_WLAN_AKM_SUITE_PSK,4,2         ## @WLAN_AKM_SUITE_PSK
	.no_dead_strip	_cfg80211_set_key_mgt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_set_key_mgt
_cfg80211_set_key_mgt:                  ; @cfg80211_set_key_mgt
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IW_AUTH_KEY_MGMT_802_1X@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IW_AUTH_KEY_MGMT_802_1X@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
Lloh3:
	adrp	x9, _IW_AUTH_KEY_MGMT_PSK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_AUTH_KEY_MGMT_PSK@GOTPAGEOFF]
	ldr	w8, [x9]
	orr	w11, w8, w10
	bics	wzr, w1, w11
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_2:
	tst	w10, w1
	b.eq	LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _WLAN_AKM_SUITE_8021X@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_AKM_SUITE_8021X@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x10, [x0, #8]
	str	w8, [x10]
	ldr	w8, [x9]
	mov	w9, #1
	tst	w8, w1
	b.eq	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _WLAN_AKM_SUITE_PSK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _WLAN_AKM_SUITE_PSK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	x10, [x0, #8]
	str	w8, [x10, w9, uxtw #2]
	add	w9, w9, #1
LBB0_5:
	str	w9, [x0]
	mov	w0, #0
	ret
LBB0_6:
	mov	w9, #0
	tst	w8, w1
	b.ne	LBB0_4
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_AUTH_KEY_MGMT_802_1X,4,2    ; @IW_AUTH_KEY_MGMT_802_1X
	.comm	_IW_AUTH_KEY_MGMT_PSK,4,2       ; @IW_AUTH_KEY_MGMT_PSK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLAN_AKM_SUITE_8021X,4,2       ; @WLAN_AKM_SUITE_8021X
	.comm	_WLAN_AKM_SUITE_PSK,4,2         ; @WLAN_AKM_SUITE_PSK
	.no_dead_strip	_cfg80211_set_key_mgt
.subsections_via_symbols
