	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shim__set_security
_shim__set_security:                    ## @shim__set_security
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_libipw_priv
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	_SEC_LEVEL_1@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	56(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movq	48(%r15), %rax
	movl	(%rax,%rbx,4), %esi
	callq	_memcpy
	movq	8(%r14), %rax
	orl	%r12d, 16(%rax)
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_STATUS_SECURITY_UPDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	cmpq	$4, %rbx
	je	LBB0_9
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %eax
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	btl	%ebx, %eax
	jae	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	56(%r15), %rax
	movl	(%rax,%rbx,4), %ecx
	movq	8(%r14), %rax
	movq	64(%rax), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	8(%rax), %rsi
	movq	%rdx, (%rsi,%rbx,8)
	movq	(%rcx,%rbx,8), %rdx
	testq	%rdx, %rdx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	notl	%r12d
	andl	%r12d, 16(%rax)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	16(%r15), %rax
	cmpq	(%r13), %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	notl	%r12d
	movq	8(%r14), %rax
	andl	%r12d, 16(%rax)
	jmp	LBB0_8
LBB0_9:
	movl	(%r15), %eax
	movq	_SEC_ACTIVE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_11
## %bb.10:
	movl	44(%r15), %esi
	movq	8(%r14), %rdx
	movl	%esi, 52(%rdx)
	orl	16(%rdx), %ecx
	movl	%ecx, 16(%rdx)
	movq	_STATUS_SECURITY_UPDATED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, (%r14)
	jmp	LBB0_12
LBB0_11:
	notl	%ecx
	movq	8(%r14), %rdx
	andl	16(%rdx), %ecx
	movl	%ecx, 16(%rdx)
LBB0_12:
	movq	_SEC_AUTH_MODE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	testl	%eax, %edi
	je	LBB0_18
## %bb.13:
	movq	24(%r15), %rsi
	cmpq	%rsi, 24(%rdx)
	je	LBB0_18
## %bb.14:
	movq	%rsi, 24(%rdx)
	orl	%edi, %ecx
	movl	%ecx, 16(%rdx)
	movq	_WLAN_AUTH_SHARED_KEY@GOTPCREL(%rip), %rbx
	movq	_CAP_SHARED_KEY@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	cmpq	(%rbx), %rsi
	jne	LBB0_16
## %bb.15:
	orl	%edi, 16(%r14)
	jmp	LBB0_17
LBB0_16:
	notl	%edi
	andl	%edi, 16(%r14)
LBB0_17:
	movq	_STATUS_SECURITY_UPDATED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, (%r14)
LBB0_18:
	movq	_SEC_ENABLED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %edi
	testl	%eax, %edi
	je	LBB0_23
## %bb.19:
	movq	32(%r15), %rsi
	cmpq	%rsi, 32(%rdx)
	je	LBB0_23
## %bb.20:
	orl	%edi, %ecx
	movl	%ecx, 16(%rdx)
	movq	%rsi, 32(%rdx)
	movq	_STATUS_SECURITY_UPDATED@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	%edi, (%r14)
	movq	_CAP_PRIVACY_ON@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	orl	%edi, 16(%r14)
	jmp	LBB0_23
LBB0_22:
	notl	%edi
	andl	%edi, 16(%r14)
LBB0_23:
	movq	_SEC_ENCRYPT@GOTPCREL(%rip), %rsi
	testl	%eax, (%rsi)
	je	LBB0_25
## %bb.24:
	movl	40(%r15), %edi
	movl	%edi, 48(%rdx)
LBB0_25:
	movq	_SEC_LEVEL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	testl	%eax, %edi
	je	LBB0_28
## %bb.26:
	movq	16(%r15), %rbx
	cmpq	%rbx, 40(%rdx)
	je	LBB0_28
## %bb.27:
	movq	%rbx, 40(%rdx)
	orl	%edi, %ecx
	movl	%ecx, 16(%rdx)
	movq	_STATUS_SECURITY_UPDATED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%r14)
LBB0_28:
	cmpl	$0, (%rdx)
	je	LBB0_29
LBB0_30:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	testl	%eax, (%rsi)
	je	LBB0_30
## %bb.31:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ipw_set_hwcrypto_keys          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STATUS_SECURITY_UPDATED,4,2    ## @STATUS_SECURITY_UPDATED
	.comm	_SEC_LEVEL_1,8,3                ## @SEC_LEVEL_1
	.comm	_SEC_ACTIVE_KEY,4,2             ## @SEC_ACTIVE_KEY
	.comm	_SEC_AUTH_MODE,4,2              ## @SEC_AUTH_MODE
	.comm	_WLAN_AUTH_SHARED_KEY,8,3       ## @WLAN_AUTH_SHARED_KEY
	.comm	_CAP_SHARED_KEY,4,2             ## @CAP_SHARED_KEY
	.comm	_SEC_ENABLED,4,2                ## @SEC_ENABLED
	.comm	_CAP_PRIVACY_ON,4,2             ## @CAP_PRIVACY_ON
	.comm	_SEC_ENCRYPT,4,2                ## @SEC_ENCRYPT
	.comm	_SEC_LEVEL,4,2                  ## @SEC_LEVEL
	.comm	_STATUS_ASSOCIATED,4,2          ## @STATUS_ASSOCIATED
	.comm	_STATUS_ASSOCIATING,4,2         ## @STATUS_ASSOCIATING
	.comm	_WLAN_CAPABILITY_PRIVACY,4,2    ## @WLAN_CAPABILITY_PRIVACY
	.no_dead_strip	_shim__set_security
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shim__set_security
_shim__set_security:                    ; @shim__set_security
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	bl	_libipw_priv
	mov	x19, x0
	mov	x22, #0
	mov	w23, #1
Lloh0:
	adrp	x24, _SEC_LEVEL_1@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SEC_LEVEL_1@GOTPAGEOFF]
Lloh2:
	adrp	x21, _STATUS_SECURITY_UPDATED@GOTPAGE
Lloh3:
	ldr	x21, [x21, _STATUS_SECURITY_UPDATED@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x9, #56]
	ldr	w0, [x9, x8]
	ldr	x9, [x20, #48]
	ldr	w1, [x9, x8]
	bl	_memcpy
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #16]
	orr	w9, w9, w25
	str	w9, [x8, #16]
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, #4
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	lsl	w25, w23, w22
	tst	w8, w25
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x20, #56]
	lsl	x8, x22, #2
	ldr	w10, [x9, x8]
	ldr	x9, [x19, #8]
	ldr	x11, [x9, #64]
	str	w10, [x11, x8]
	ldr	x10, [x20, #8]
	lsl	x11, x22, #3
	ldr	x12, [x10, x11]
	ldr	x13, [x9, #8]
	str	x12, [x13, x11]
	ldr	x2, [x10, x11]
	cbnz	x2, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x9, #16]
	bic	w8, w8, w25
	str	w8, [x9, #16]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #16]
	bic	w9, w9, w25
	str	w9, [x8, #16]
	b	LBB0_3
LBB0_9:
	ldr	w8, [x20]
Lloh4:
	adrp	x9, _SEC_ACTIVE_KEY@GOTPAGE
Lloh5:
	ldr	x9, [x9, _SEC_ACTIVE_KEY@GOTPAGEOFF]
Lloh6:
	ldr	w10, [x9]
	tst	w10, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	w11, [x20, #44]
	ldr	x9, [x19, #8]
	str	w11, [x9, #52]
	ldr	w11, [x9, #16]
	orr	w10, w11, w10
	str	w10, [x9, #16]
	ldr	w11, [x21]
	ldr	w12, [x19]
	orr	w11, w12, w11
	str	w11, [x19]
	b	LBB0_12
LBB0_11:
	ldr	x9, [x19, #8]
	ldr	w11, [x9, #16]
	bic	w10, w11, w10
	str	w10, [x9, #16]
LBB0_12:
Lloh7:
	adrp	x11, _SEC_AUTH_MODE@GOTPAGE
Lloh8:
	ldr	x11, [x11, _SEC_AUTH_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w12, [x11]
	tst	w12, w8
	b.eq	LBB0_18
; %bb.13:
	ldr	x13, [x9, #24]
	ldr	x11, [x20, #24]
	cmp	x13, x11
	b.eq	LBB0_18
; %bb.14:
	str	x11, [x9, #24]
	orr	w10, w10, w12
Lloh10:
	adrp	x12, _WLAN_AUTH_SHARED_KEY@GOTPAGE
Lloh11:
	ldr	x12, [x12, _WLAN_AUTH_SHARED_KEY@GOTPAGEOFF]
	str	w10, [x9, #16]
Lloh12:
	ldr	x13, [x12]
Lloh13:
	adrp	x12, _CAP_SHARED_KEY@GOTPAGE
Lloh14:
	ldr	x12, [x12, _CAP_SHARED_KEY@GOTPAGEOFF]
Lloh15:
	ldr	w12, [x12]
	cmp	x11, x13
	b.ne	LBB0_16
; %bb.15:
	ldr	w11, [x19, #16]
	orr	w11, w11, w12
	b	LBB0_17
LBB0_16:
	ldr	w11, [x19, #16]
	bic	w11, w11, w12
LBB0_17:
	str	w11, [x19, #16]
	ldr	w11, [x21]
	ldr	w12, [x19]
	orr	w11, w12, w11
	str	w11, [x19]
LBB0_18:
Lloh16:
	adrp	x11, _SEC_ENABLED@GOTPAGE
Lloh17:
	ldr	x11, [x11, _SEC_ENABLED@GOTPAGEOFF]
Lloh18:
	ldr	w12, [x11]
	tst	w12, w8
	b.eq	LBB0_24
; %bb.19:
	ldr	x13, [x9, #32]
	ldr	x11, [x20, #32]
	cmp	x13, x11
	b.eq	LBB0_24
; %bb.20:
	orr	w10, w10, w12
	str	w10, [x9, #16]
	str	x11, [x9, #32]
	ldr	w12, [x21]
	ldr	w13, [x19]
	orr	w12, w13, w12
	str	w12, [x19]
Lloh19:
	adrp	x12, _CAP_PRIVACY_ON@GOTPAGE
Lloh20:
	ldr	x12, [x12, _CAP_PRIVACY_ON@GOTPAGEOFF]
Lloh21:
	ldr	w12, [x12]
	cbz	x11, LBB0_22
; %bb.21:
	ldr	w11, [x19, #16]
	orr	w11, w11, w12
	b	LBB0_23
LBB0_22:
	ldr	w11, [x19, #16]
	bic	w11, w11, w12
LBB0_23:
	str	w11, [x19, #16]
LBB0_24:
Lloh22:
	adrp	x11, _SEC_ENCRYPT@GOTPAGE
Lloh23:
	ldr	x11, [x11, _SEC_ENCRYPT@GOTPAGEOFF]
	ldr	w12, [x11]
	tst	w12, w8
	b.eq	LBB0_26
; %bb.25:
	ldr	w12, [x20, #40]
	str	w12, [x9, #48]
LBB0_26:
Lloh24:
	adrp	x12, _SEC_LEVEL@GOTPAGE
Lloh25:
	ldr	x12, [x12, _SEC_LEVEL@GOTPAGEOFF]
Lloh26:
	ldr	w12, [x12]
	tst	w12, w8
	b.eq	LBB0_29
; %bb.27:
	ldr	x14, [x9, #40]
	ldr	x13, [x20, #16]
	cmp	x14, x13
	b.eq	LBB0_29
; %bb.28:
	str	x13, [x9, #40]
	orr	w10, w10, w12
	str	w10, [x9, #16]
	ldr	w10, [x21]
	ldr	w12, [x19]
	orr	w10, w12, w10
	str	w10, [x19]
LBB0_29:
	ldr	w9, [x9]
	cbz	w9, LBB0_31
LBB0_30:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_31:
	ldr	w9, [x11]
	tst	w9, w8
	b.eq	LBB0_30
; %bb.32:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ipw_set_hwcrypto_keys
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STATUS_SECURITY_UPDATED,4,2    ; @STATUS_SECURITY_UPDATED
	.comm	_SEC_LEVEL_1,8,3                ; @SEC_LEVEL_1
	.comm	_SEC_ACTIVE_KEY,4,2             ; @SEC_ACTIVE_KEY
	.comm	_SEC_AUTH_MODE,4,2              ; @SEC_AUTH_MODE
	.comm	_WLAN_AUTH_SHARED_KEY,8,3       ; @WLAN_AUTH_SHARED_KEY
	.comm	_CAP_SHARED_KEY,4,2             ; @CAP_SHARED_KEY
	.comm	_SEC_ENABLED,4,2                ; @SEC_ENABLED
	.comm	_CAP_PRIVACY_ON,4,2             ; @CAP_PRIVACY_ON
	.comm	_SEC_ENCRYPT,4,2                ; @SEC_ENCRYPT
	.comm	_SEC_LEVEL,4,2                  ; @SEC_LEVEL
	.comm	_STATUS_ASSOCIATED,4,2          ; @STATUS_ASSOCIATED
	.comm	_STATUS_ASSOCIATING,4,2         ; @STATUS_ASSOCIATING
	.comm	_WLAN_CAPABILITY_PRIVACY,4,2    ; @WLAN_CAPABILITY_PRIVACY
	.no_dead_strip	_shim__set_security
.subsections_via_symbols
