	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipw_wx_set_encodeext
_ipw_wx_set_encodeext:                  ## @ipw_wx_set_encodeext
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rsi, %r15
	callq	_libipw_priv
	movq	_hwcrypto@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_1
## %bb.2:
	movq	(%rbx), %rcx
	movq	_IW_ENCODE_ALG_TKIP@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.3:
	movq	_IW_ENCODE_EXT_GROUP_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	(%rax), %rdi
	testl	%ecx, 8(%rbx)
	je	LBB0_5
## %bb.4:
	movl	$1, (%rdi)
	jmp	LBB0_7
LBB0_1:
	movq	(%rax), %rdi
	jmp	LBB0_7
LBB0_6:
	movq	(%rax), %rdi
	movq	$0, 16(%rdi)
	movl	$0, 8(%rdi)
	movq	$0, (%rdi)
	jmp	LBB0_7
LBB0_5:
	movq	$0, 16(%rdi)
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	movq	%rax, 4(%rdi)
LBB0_7:
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_libipw_wx_set_encodeext        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hwcrypto,8,3                   ## @hwcrypto
	.comm	_IW_ENCODE_ALG_TKIP,8,3         ## @IW_ENCODE_ALG_TKIP
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ## @IW_ENCODE_EXT_GROUP_KEY
	.no_dead_strip	_ipw_wx_set_encodeext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipw_wx_set_encodeext
_ipw_wx_set_encodeext:                  ; @ipw_wx_set_encodeext
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	bl	_libipw_priv
Lloh0:
	adrp	x8, _hwcrypto@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hwcrypto@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _IW_ENCODE_ALG_TKIP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IW_ENCODE_ALG_TKIP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #8]
Lloh6:
	adrp	x9, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IW_ENCODE_EXT_GROUP_KEY@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	x0, [x0]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.3:
	mov	w8, #1
	str	w8, [x0]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x0]
	b	LBB0_7
LBB0_5:
	ldr	x0, [x0]
	str	xzr, [x0, #16]
	str	wzr, [x0, #8]
	str	xzr, [x0]
	b	LBB0_7
LBB0_6:
	str	xzr, [x0, #16]
	movi.2s	v0, #1
	stur	d0, [x0, #4]
LBB0_7:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_libipw_wx_set_encodeext
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_hwcrypto,8,3                   ; @hwcrypto
	.comm	_IW_ENCODE_ALG_TKIP,8,3         ; @IW_ENCODE_ALG_TKIP
	.comm	_IW_ENCODE_EXT_GROUP_KEY,4,2    ; @IW_ENCODE_EXT_GROUP_KEY
	.no_dead_strip	_ipw_wx_set_encodeext
.subsections_via_symbols
