	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cfg80211_set_auth_alg
_cfg80211_set_auth_alg:                 ## @cfg80211_set_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
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_IW_AUTH_ALG_OPEN_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IW_AUTH_ALG_SHARED_KEY@GOTPCREL(%rip), %r9
	movl	(%r9), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	movq	_IW_AUTH_ALG_LEAP@GOTPCREL(%rip), %r8
	orl	(%r8), %edx
	notl	%edx
	testl	%esi, %edx
	je	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	testl	%esi, %eax
	je	LBB0_4
## %bb.5:
	movq	_NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movl	(%r9), %ecx
	movl	$1, %edx
	testl	%esi, %ecx
	je	LBB0_8
LBB0_7:
	incl	%edx
	movq	_NL80211_AUTHTYPE_SHARED_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_8:
	testl	%esi, (%r8)
	je	LBB0_10
## %bb.9:
	incl	%edx
	movq	_NL80211_AUTHTYPE_NETWORK_EAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
LBB0_10:
	xorl	%eax, %eax
	cmpl	$2, %edx
	jb	LBB0_12
## %bb.11:
	movq	_NL80211_AUTHTYPE_AUTOMATIC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rdi)
LBB0_12:
	popq	%rbp
	retq
LBB0_4:
	xorl	%edx, %edx
	testl	%esi, %ecx
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ## @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ## @IW_AUTH_ALG_SHARED_KEY
	.comm	_IW_AUTH_ALG_LEAP,4,2           ## @IW_AUTH_ALG_LEAP
	.comm	_NL80211_AUTHTYPE_OPEN_SYSTEM,4,2 ## @NL80211_AUTHTYPE_OPEN_SYSTEM
	.comm	_NL80211_AUTHTYPE_SHARED_KEY,4,2 ## @NL80211_AUTHTYPE_SHARED_KEY
	.comm	_NL80211_AUTHTYPE_NETWORK_EAP,4,2 ## @NL80211_AUTHTYPE_NETWORK_EAP
	.comm	_NL80211_AUTHTYPE_AUTOMATIC,4,2 ## @NL80211_AUTHTYPE_AUTOMATIC
	.no_dead_strip	_cfg80211_set_auth_alg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cfg80211_set_auth_alg
_cfg80211_set_auth_alg:                 ; @cfg80211_set_auth_alg
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x8]
Lloh3:
	adrp	x9, _IW_AUTH_ALG_SHARED_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_AUTH_ALG_SHARED_KEY@GOTPAGEOFF]
	ldr	w10, [x9]
	orr	w12, w10, w11
Lloh5:
	adrp	x8, _IW_AUTH_ALG_LEAP@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IW_AUTH_ALG_LEAP@GOTPAGEOFF]
	ldr	w13, [x8]
	orr	w12, w12, w13
	bics	wzr, w1, w12
	b.eq	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_3:
	tst	w11, w1
	b.eq	LBB0_11
; %bb.4:
Lloh10:
	adrp	x10, _NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPAGE
Lloh11:
	ldr	x10, [x10, _NL80211_AUTHTYPE_OPEN_SYSTEM@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	str	w10, [x0]
	ldr	w10, [x9]
	mov	w9, #1
	tst	w10, w1
	b.eq	LBB0_6
LBB0_5:
	add	w9, w9, #1
Lloh13:
	adrp	x10, _NL80211_AUTHTYPE_SHARED_KEY@GOTPAGE
Lloh14:
	ldr	x10, [x10, _NL80211_AUTHTYPE_SHARED_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	str	w10, [x0]
LBB0_6:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_8
; %bb.7:
	add	w9, w9, #1
Lloh16:
	adrp	x8, _NL80211_AUTHTYPE_NETWORK_EAP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _NL80211_AUTHTYPE_NETWORK_EAP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_8:
	cmp	w9, #2
	b.lo	LBB0_10
; %bb.9:
Lloh19:
	adrp	x9, _NL80211_AUTHTYPE_AUTOMATIC@GOTPAGE
Lloh20:
	ldr	x9, [x9, _NL80211_AUTHTYPE_AUTOMATIC@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	str	w9, [x0]
LBB0_10:
	mov	w0, #0
	ret
LBB0_11:
	mov	w9, #0
	tst	w10, w1
	b.ne	LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ; @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ; @IW_AUTH_ALG_SHARED_KEY
	.comm	_IW_AUTH_ALG_LEAP,4,2           ; @IW_AUTH_ALG_LEAP
	.comm	_NL80211_AUTHTYPE_OPEN_SYSTEM,4,2 ; @NL80211_AUTHTYPE_OPEN_SYSTEM
	.comm	_NL80211_AUTHTYPE_SHARED_KEY,4,2 ; @NL80211_AUTHTYPE_SHARED_KEY
	.comm	_NL80211_AUTHTYPE_NETWORK_EAP,4,2 ; @NL80211_AUTHTYPE_NETWORK_EAP
	.comm	_NL80211_AUTHTYPE_AUTOMATIC,4,2 ; @NL80211_AUTHTYPE_AUTOMATIC
	.no_dead_strip	_cfg80211_set_auth_alg
.subsections_via_symbols
