	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wpa_set_auth_algs
_ipw_wpa_set_auth_algs:                 ## @ipw_wpa_set_auth_algs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rax
	movq	_SEC_AUTH_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -4(%rbp)
	movq	_IW_AUTH_ALG_SHARED_KEY@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_4
## %bb.1:
	movq	_WLAN_AUTH_SHARED_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -8(%rbp)
	xorl	%ecx, %ecx
	jmp	LBB0_2
LBB0_4:
	movq	_IW_AUTH_ALG_OPEN_SYSTEM@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_7
## %bb.5:
	movq	_WLAN_AUTH_OPEN@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_7:
	movq	_IW_AUTH_ALG_LEAP@GOTPCREL(%rip), %rcx
	testl	%esi, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_WLAN_AUTH_LEAP@GOTPCREL(%rip), %rcx
LBB0_6:
	movl	(%rcx), %ecx
	movl	%ecx, -8(%rbp)
	movl	$1, %ecx
LBB0_2:
	movl	%ecx, (%rax)
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.3:
	movl	4(%rax), %edi
	leaq	-8(%rbp), %rsi
	callq	*%rcx
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_10:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$16, %rsp
	popq	%rbp
	retq
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_AUTH_MODE,4,2              ## @SEC_AUTH_MODE
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ## @IW_AUTH_ALG_SHARED_KEY
	.comm	_WLAN_AUTH_SHARED_KEY,4,2       ## @WLAN_AUTH_SHARED_KEY
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ## @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_WLAN_AUTH_OPEN,4,2             ## @WLAN_AUTH_OPEN
	.comm	_IW_AUTH_ALG_LEAP,4,2           ## @IW_AUTH_ALG_LEAP
	.comm	_WLAN_AUTH_LEAP,4,2             ## @WLAN_AUTH_LEAP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_ipw_wpa_set_auth_algs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_wpa_set_auth_algs
_ipw_wpa_set_auth_algs:                 ; @ipw_wpa_set_auth_algs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SEC_AUTH_MODE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEC_AUTH_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #12]
Lloh3:
	adrp	x9, _IW_AUTH_ALG_SHARED_KEY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_AUTH_ALG_SHARED_KEY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_2
; %bb.1:
	mov	w9, #0
Lloh6:
	adrp	x10, _WLAN_AUTH_SHARED_KEY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _WLAN_AUTH_SHARED_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	str	w10, [sp, #8]
	b	LBB0_7
LBB0_2:
Lloh9:
	adrp	x9, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _IW_AUTH_ALG_OPEN_SYSTEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_4
; %bb.3:
Lloh12:
	adrp	x9, _WLAN_AUTH_OPEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WLAN_AUTH_OPEN@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh14:
	adrp	x9, _IW_AUTH_ALG_LEAP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IW_AUTH_ALG_LEAP@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w1
	b.eq	LBB0_12
; %bb.5:
Lloh17:
	adrp	x9, _WLAN_AUTH_LEAP@GOTPAGE
Lloh18:
	ldr	x9, [x9, _WLAN_AUTH_LEAP@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	str	w9, [sp, #8]
	mov	w9, #1
LBB0_7:
	str	w9, [x8]
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_9
; %bb.8:
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	blr	x9
	mov	w0, #0
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
LBB0_12:
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_AUTH_MODE,4,2              ; @SEC_AUTH_MODE
	.comm	_IW_AUTH_ALG_SHARED_KEY,4,2     ; @IW_AUTH_ALG_SHARED_KEY
	.comm	_WLAN_AUTH_SHARED_KEY,4,2       ; @WLAN_AUTH_SHARED_KEY
	.comm	_IW_AUTH_ALG_OPEN_SYSTEM,4,2    ; @IW_AUTH_ALG_OPEN_SYSTEM
	.comm	_WLAN_AUTH_OPEN,4,2             ; @WLAN_AUTH_OPEN
	.comm	_IW_AUTH_ALG_LEAP,4,2           ; @IW_AUTH_ALG_LEAP
	.comm	_WLAN_AUTH_LEAP,4,2             ; @WLAN_AUTH_LEAP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_ipw_wpa_set_auth_algs
.subsections_via_symbols
