	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_set_wpa_version
_cfg80211_set_wpa_version:              ## @cfg80211_set_wpa_version
	.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_WPA_VERSION_WPA@GOTPCREL(%rip), %r9
	movl	(%r9), %r10d
	movq	_IW_AUTH_WPA_VERSION_WPA2@GOTPCREL(%rip), %r8
	movl	(%r8), %edx
	orl	%r10d, %edx
	movq	_IW_AUTH_WPA_VERSION_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%edx, %ecx
	orl	%eax, %ecx
	notl	%ecx
	testl	%esi, %ecx
	jne	LBB0_1
## %bb.2:
	testl	%esi, %eax
	je	LBB0_4
## %bb.3:
	andl	%esi, %edx
	je	LBB0_4
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	testl	%esi, %eax
	je	LBB0_6
## %bb.5:
	movq	_NL80211_WPA_VERSION_1@GOTPCREL(%rip), %rax
	movq	_NL80211_WPA_VERSION_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%rdi)
	movl	(%r9), %r10d
LBB0_6:
	testl	%esi, %r10d
	je	LBB0_8
## %bb.7:
	movq	_NL80211_WPA_VERSION_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rdi)
LBB0_8:
	xorl	%eax, %eax
	testl	%esi, (%r8)
	je	LBB0_10
## %bb.9:
	movq	_NL80211_WPA_VERSION_2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rdi)
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IW_AUTH_WPA_VERSION_WPA,4,2    ## @IW_AUTH_WPA_VERSION_WPA
	.comm	_IW_AUTH_WPA_VERSION_WPA2,4,2   ## @IW_AUTH_WPA_VERSION_WPA2
	.comm	_IW_AUTH_WPA_VERSION_DISABLED,4,2 ## @IW_AUTH_WPA_VERSION_DISABLED
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_WPA_VERSION_1,4,2      ## @NL80211_WPA_VERSION_1
	.comm	_NL80211_WPA_VERSION_2,4,2      ## @NL80211_WPA_VERSION_2
	.no_dead_strip	_cfg80211_set_wpa_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_set_wpa_version
_cfg80211_set_wpa_version:              ; @cfg80211_set_wpa_version
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x11, _IW_AUTH_WPA_VERSION_WPA@GOTPAGE
Lloh1:
	ldr	x11, [x11, _IW_AUTH_WPA_VERSION_WPA@GOTPAGEOFF]
	ldr	w10, [x11]
Lloh2:
	adrp	x8, _IW_AUTH_WPA_VERSION_WPA2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IW_AUTH_WPA_VERSION_WPA2@GOTPAGEOFF]
	ldr	w9, [x8]
	orr	w9, w9, w10
Lloh4:
	adrp	x12, _IW_AUTH_WPA_VERSION_DISABLED@GOTPAGE
Lloh5:
	ldr	x12, [x12, _IW_AUTH_WPA_VERSION_DISABLED@GOTPAGEOFF]
Lloh6:
	ldr	w12, [x12]
	orr	w13, w9, w12
	bics	wzr, w1, w13
	b.ne	LBB0_8
; %bb.1:
	and	w13, w12, w1
	and	w9, w9, w1
	cmp	w13, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_8
; %bb.2:
Lloh7:
	adrp	x12, _NL80211_WPA_VERSION_1@GOTPAGE
Lloh8:
	ldr	x12, [x12, _NL80211_WPA_VERSION_1@GOTPAGEOFF]
Lloh9:
	adrp	x9, _NL80211_WPA_VERSION_2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_WPA_VERSION_2@GOTPAGEOFF]
	cbz	w13, LBB0_4
; %bb.3:
	ldr	w10, [x12]
	ldr	w13, [x9]
	orr	w10, w13, w10
	ldr	w13, [x0]
	bic	w10, w13, w10
	str	w10, [x0]
	ldr	w10, [x11]
LBB0_4:
	tst	w10, w1
	b.eq	LBB0_6
; %bb.5:
	ldr	w10, [x12]
	ldr	w11, [x0]
	orr	w10, w11, w10
	str	w10, [x0]
LBB0_6:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_9
; %bb.7:
	ldr	w9, [x9]
	ldr	w10, [x0]
	orr	w9, w10, w9
	str	w9, [x0]
	mov	w0, #0
	ret
LBB0_8:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_9:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IW_AUTH_WPA_VERSION_WPA,4,2    ; @IW_AUTH_WPA_VERSION_WPA
	.comm	_IW_AUTH_WPA_VERSION_WPA2,4,2   ; @IW_AUTH_WPA_VERSION_WPA2
	.comm	_IW_AUTH_WPA_VERSION_DISABLED,4,2 ; @IW_AUTH_WPA_VERSION_DISABLED
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_WPA_VERSION_1,4,2      ; @NL80211_WPA_VERSION_1
	.comm	_NL80211_WPA_VERSION_2,4,2      ; @NL80211_WPA_VERSION_2
	.no_dead_strip	_cfg80211_set_wpa_version
.subsections_via_symbols
