	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_rekey
_ieee802_1x_rekey:                      ## @ieee802_1x_rekey
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movl	(%r14), %edx
	cmpl	$3, %edx
	jl	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	xorl	%edx, %edx
	cmpq	$0, (%rax)
	setg	%dl
	jmp	LBB0_3
LBB0_2:
	incl	%edx
LBB0_3:
	movl	%edx, (%r14)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	movq	%rbx, %rdi
	callq	_ieee802_1x_rekey_broadcast
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_HOSTAPD_MODULE_IEEE8021X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %r8
	jmp	LBB0_5
LBB0_6:
	movq	(%rbx), %rax
	movl	16(%rax), %r10d
	movl	20(%rax), %edi
	movq	_WPA_ALG_WEP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_broadcast_ether_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r14), %r8d
	movq	%rbx, %rsi
	movl	$1, %r9d
	pushq	%r10
	pushq	8(%r14)
	pushq	$0
	pushq	$0
	callq	_hostapd_drv_set_key
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_HOSTAPD_MODULE_IEEE8021X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HOSTAPD_LEVEL_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %r8
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hostapd_logger
	movq	8(%r14), %rdi
	callq	_os_free
	movq	$0, 8(%r14)
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	_ieee802_1x_sta_key_available@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ap_for_each_sta
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	jle	LBB0_9
## %bb.10:
	leaq	_ieee802_1x_rekey(%rip), %rdx
	xorl	%esi, %esi
	movq	%rbx, %rcx
	xorl	%r8d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_eloop_register_timeout         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IEEE 802.1X: New default WEP key index %d"

	.comm	_HOSTAPD_MODULE_IEEE8021X,4,2   ## @HOSTAPD_MODULE_IEEE8021X
	.comm	_HOSTAPD_LEVEL_WARNING,4,2      ## @HOSTAPD_LEVEL_WARNING
L_.str.1:                               ## @.str.1
	.asciz	"failed to generate a new broadcast key"

	.comm	_WPA_ALG_WEP,4,2                ## @WPA_ALG_WEP
	.comm	_broadcast_ether_addr,4,2       ## @broadcast_ether_addr
L_.str.2:                               ## @.str.2
	.asciz	"failed to configure a new broadcast key"

	.comm	_ieee802_1x_sta_key_available,4,2 ## @ieee802_1x_sta_key_available
	.no_dead_strip	_ieee802_1x_rekey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_rekey
_ieee802_1x_rekey:                      ; @ieee802_1x_rekey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w2, gt
	b	LBB0_3
LBB0_2:
	add	w2, w8, #1
LBB0_3:
	str	w2, [x20]
Lloh0:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	mov	x0, x19
	bl	_ieee802_1x_rekey_broadcast
	cbz	x0, LBB0_5
; %bb.4:
Lloh5:
	adrp	x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _HOSTAPD_LEVEL_WARNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HOSTAPD_LEVEL_WARNING@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
Lloh11:
	adrp	x4, l_.str.1@PAGE
Lloh12:
	add	x4, x4, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _WPA_ALG_WEP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _WPA_ALG_WEP@GOTPAGEOFF]
Lloh15:
	adrp	x10, _broadcast_ether_addr@GOTPAGE
Lloh16:
	ldr	x10, [x10, _broadcast_ether_addr@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x9]
Lloh18:
	ldr	w3, [x10]
	ldr	w4, [x20]
	ldr	x9, [x20, #8]
	ldp	w8, w0, [x8, #16]
	str	w8, [sp, #8]
	str	x9, [sp]
	mov	x1, x19
	mov	w5, #1
	mov	x6, #0
	mov	w7, #0
	bl	_hostapd_drv_set_key
	cbz	x0, LBB0_9
; %bb.6:
Lloh19:
	adrp	x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HOSTAPD_MODULE_IEEE8021X@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x8, _HOSTAPD_LEVEL_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HOSTAPD_LEVEL_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
Lloh25:
	adrp	x4, l_.str.2@PAGE
Lloh26:
	add	x4, x4, l_.str.2@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x1, #0
	bl	_hostapd_logger
	ldr	x0, [x20, #8]
	bl	_os_free
	str	xzr, [x20, #8]
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_9:
Lloh27:
	adrp	x8, _ieee802_1x_sta_key_available@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ieee802_1x_sta_key_available@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_ap_for_each_sta
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	cmp	x0, #1
	b.lt	LBB0_8
; %bb.10:
Lloh30:
	adrp	x2, _ieee802_1x_rekey@PAGE
Lloh31:
	add	x2, x2, _ieee802_1x_rekey@PAGEOFF
	mov	w1, #0
	mov	x3, x19
	mov	x4, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_eloop_register_timeout
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IEEE 802.1X: New default WEP key index %d"

	.comm	_HOSTAPD_MODULE_IEEE8021X,4,2   ; @HOSTAPD_MODULE_IEEE8021X
	.comm	_HOSTAPD_LEVEL_WARNING,4,2      ; @HOSTAPD_LEVEL_WARNING
l_.str.1:                               ; @.str.1
	.asciz	"failed to generate a new broadcast key"

	.comm	_WPA_ALG_WEP,4,2                ; @WPA_ALG_WEP
	.comm	_broadcast_ether_addr,4,2       ; @broadcast_ether_addr
l_.str.2:                               ; @.str.2
	.asciz	"failed to configure a new broadcast key"

	.comm	_ieee802_1x_sta_key_available,4,2 ; @ieee802_1x_sta_key_available
	.no_dead_strip	_ieee802_1x_rekey
.subsections_via_symbols
