	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wnm_sleep_mode_exit_success
_wnm_sleep_mode_exit_success:           ## @wnm_sleep_mode_exit_success
	.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
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_WNM_SLEEP_EXIT_CONFIRM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rdi), %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_wpa_drv_wnm_oper
	leaq	12(%r15), %r13
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdx
	movl	%r12d, %ecx
	callq	_wpa_hexdump_key
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.1:
	movl	(%r14), %edi
	callq	_wpa_sm_pmf_enabled
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	cmpl	$2, %r12d
	jl	LBB0_15
## %bb.3:
	movslq	%r12d, %rbx
	leaq	(%r15,%rbx,4), %r15
	addq	$12, %r15
	movq	_WNM_SLEEP_SUBELEM_GTK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	4(%r13), %rax
	leaq	2(%rax), %rcx
	cmpq	%rcx, %rbx
	jl	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %esi
	cmpl	(%r12), %esi
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$15, %eax
	jle	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	16(%r13), %ebx
	leal	-33(%rbx), %ecx
	cmpl	$-28, %ecx
	jb	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	11(%rbx), %ecx
	cmpl	%ecx, %eax
	jl	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14), %edi
	movq	%r13, %rdx
	callq	_wpa_wnmsleep_install_key
	leaq	52(%r13,%rbx,4), %r13
	movq	%r15, %rax
	subq	%r13, %rax
	movq	%rax, %rbx
	sarq	$2, %rbx
	cmpq	$4, %rax
	jg	LBB0_4
	jmp	LBB0_15
LBB0_16:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_msg                        ## TAILCALL
LBB0_5:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_printf
	cmpq	%r13, %r15
	jbe	LBB0_15
## %bb.6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_hexdump                    ## TAILCALL
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_13:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wpa_printf                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_WNM_SLEEP_EXIT_CONFIRM,4,2     ## @WNM_SLEEP_EXIT_CONFIRM
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"WNM: Key Data"

	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"WNM: Ignore Key Data in WNM-Sleep Mode Response - PMF not enabled"

L_.str.2:                               ## @.str.2
	.asciz	"WNM: Invalid Key Data element length"

L_.str.3:                               ## @.str.3
	.asciz	"WNM: Remaining data"

	.comm	_WNM_SLEEP_SUBELEM_GTK,4,2      ## @WNM_SLEEP_SUBELEM_GTK
L_.str.4:                               ## @.str.4
	.asciz	"WNM: Too short GTK subelem"

L_.str.5:                               ## @.str.5
	.asciz	"WNM: Invalid GTK subelem"

	.comm	_WNM_SLEEP_SUBELEM_IGTK,4,2     ## @WNM_SLEEP_SUBELEM_IGTK
	.comm	_WPA_IGTK_LEN,4,2               ## @WPA_IGTK_LEN
	.no_dead_strip	_wnm_sleep_mode_exit_success
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wnm_sleep_mode_exit_success
_wnm_sleep_mode_exit_success:           ; @wnm_sleep_mode_exit_success
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _WNM_SLEEP_EXIT_CONFIRM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WNM_SLEEP_EXIT_CONFIRM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0, #4]
	mov	x3, #0
	mov	x4, #0
	bl	_wpa_drv_wnm_oper
	add	x20, x20, #12
Lloh3:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	mov	x3, x21
	bl	_wpa_hexdump_key
	cbz	w21, LBB0_12
; %bb.1:
	ldr	w0, [x19]
	bl	_wpa_sm_pmf_enabled
	cbz	w0, LBB0_9
; %bb.2:
	cmp	w21, #2
	b.lt	LBB0_12
; %bb.3:
	sxtw	x22, w21
Lloh7:
	adrp	x24, _WNM_SLEEP_SUBELEM_GTK@GOTPAGE
Lloh8:
	ldr	x24, [x24, _WNM_SLEEP_SUBELEM_GTK@GOTPAGEOFF]
	add	x21, x20, w21, sxtw #2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x20, #4]
	add	x9, x8, #2
	cmp	x22, x9
	b.lt	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x20]
	ldr	w9, [x24]
	cmp	w1, w9
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #15
	b.le	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w22, [x20, #16]
	add	w9, w22, #11
	sub	w10, w22, #33
	cmn	w10, #28
	ccmp	w8, w9, #8, hs
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	mov	x2, x20
	bl	_wpa_wnmsleep_install_key
	add	x8, x20, x22, lsl #2
	add	x20, x8, #52
	sub	x8, x21, x20
	asr	x22, x8, #2
	cmp	x8, #4
	b.gt	LBB0_4
	b	LBB0_12
LBB0_9:
Lloh9:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_msg
LBB0_10:
	ldr	w0, [x23]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	cmp	x21, x20
	b.ls	LBB0_12
; %bb.11:
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	mov	x3, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_hexdump
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	ldr	w0, [x23]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_15
LBB0_14:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wpa_printf
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_WNM_SLEEP_EXIT_CONFIRM,4,2     ; @WNM_SLEEP_EXIT_CONFIRM
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"WNM: Key Data"

	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"WNM: Ignore Key Data in WNM-Sleep Mode Response - PMF not enabled"

l_.str.2:                               ; @.str.2
	.asciz	"WNM: Invalid Key Data element length"

l_.str.3:                               ; @.str.3
	.asciz	"WNM: Remaining data"

	.comm	_WNM_SLEEP_SUBELEM_GTK,4,2      ; @WNM_SLEEP_SUBELEM_GTK
l_.str.4:                               ; @.str.4
	.asciz	"WNM: Too short GTK subelem"

l_.str.5:                               ; @.str.5
	.asciz	"WNM: Invalid GTK subelem"

	.comm	_WNM_SLEEP_SUBELEM_IGTK,4,2     ; @WNM_SLEEP_SUBELEM_IGTK
	.comm	_WPA_IGTK_LEN,4,2               ; @WPA_IGTK_LEN
	.no_dead_strip	_wnm_sleep_mode_exit_success
.subsections_via_symbols
