	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_mka_encode_sak_use_body
_ieee802_1x_mka_encode_sak_use_body:    ## @ieee802_1x_mka_encode_sak_use_body
	.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
	movq	%rdi, %r14
	movq	80(%rdi), %r13
	callq	_ieee802_1x_mka_get_sak_use_length
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	movq	%rax, %r12
	movq	_MKA_SAK_USE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r12)
	movq	_MKA_HDR_LEN@GOTPCREL(%rip), %r15
	movl	%ebx, %esi
	subl	(%r15), %esi
	movq	%r12, %rdi
	callq	_set_mka_param_body_len
	cmpl	(%r15), %ebx
	jne	LBB0_2
## %bb.1:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movl	%eax, 4(%r12)
	movq	$0, 80(%r12)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	%rax, 24(%r12)
	movl	%eax, 8(%r12)
	jmp	LBB0_14
LBB0_2:
	movq	(%r13), %rax
	movq	_MKA_BOUNDED_HELLO_TIME@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setle	%dl
	movl	%edx, 8(%r12)
	leaq	16(%r14), %rsi
	movq	%r14, %rdi
	callq	_ieee802_1x_mka_get_lpn
	movq	%rax, %r15
	cmpq	8(%r13), %rax
	jle	LBB0_5
## %bb.3:
	movq	_MSG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
	cmpq	$0, 72(%r14)
	je	LBB0_5
## %bb.4:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r14)
LBB0_5:
	movq	%r15, %rdi
	callq	_host_to_be32
	movq	%rax, 96(%r12)
	movq	%r14, %rdi
	movq	%r14, %rsi
	callq	_ieee802_1x_mka_get_lpn
	movq	%rax, %rdi
	callq	_host_to_be32
	movq	%rax, 88(%r12)
	xorl	%eax, %eax
	cmpl	$0, 48(%r13)
	sete	%al
	movl	%eax, (%r12)
	movq	16(%r13), %rax
	movq	_Strict@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, 4(%r12)
	movq	56(%r14), %rax
	movq	%rax, 80(%r12)
	movl	72(%r12), %edi
	movl	24(%r14), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movq	16(%r14), %rdi
	callq	_host_to_be32
	movq	%rax, 64(%r12)
	movq	48(%r14), %rax
	movq	%rax, 16(%r12)
	movq	40(%r14), %rax
	movq	%rax, 24(%r12)
	movl	32(%r14), %ecx
	movl	%ecx, 60(%r12)
	movq	(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:
	cmpq	16(%r14), %rcx
	je	LBB0_8
## %bb.7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r12)
	movq	%rax, 32(%r12)
	movl	56(%r12), %edi
	movl	8(%r14), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movq	(%r14), %rdi
	callq	_host_to_be32
	movq	%rax, 48(%r12)
	movq	24(%r12), %rax
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_11
LBB0_8:
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 40(%r12)
	movq	%rcx, 32(%r12)
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 40(%r13)
	movq	%rax, 32(%r13)
LBB0_11:
	cmpq	$0, 16(%r12)
	je	LBB0_13
## %bb.12:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r13)
LBB0_13:
	movq	%r12, %rdi
	callq	_ieee802_1x_mka_dump_sak_use_body
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MKA_SAK_USE,4,2                ## @MKA_SAK_USE
	.comm	_MKA_HDR_LEN,4,2                ## @MKA_HDR_LEN
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_MKA_BOUNDED_HELLO_TIME,8,3     ## @MKA_BOUNDED_HELLO_TIME
	.comm	_MSG_WARNING,4,2                ## @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"KaY: My LPN exhaustion"

	.comm	_Strict,8,3                     ## @Strict
	.no_dead_strip	_ieee802_1x_mka_encode_sak_use_body
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee802_1x_mka_encode_sak_use_body
_ieee802_1x_mka_encode_sak_use_body:    ; @ieee802_1x_mka_encode_sak_use_body
	.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	x19, x1
	mov	x20, x0
	ldr	x22, [x0, #80]
	bl	_ieee802_1x_mka_get_sak_use_length
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_wpabuf_put
	mov	x19, x0
Lloh0:
	adrp	x8, _MKA_SAK_USE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MKA_SAK_USE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #104]
Lloh3:
	adrp	x23, _MKA_HDR_LEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MKA_HDR_LEN@GOTPAGEOFF]
	ldr	w8, [x23]
	sub	w1, w21, w8
	bl	_set_mka_param_body_len
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	stp	w8, w8, [x19]
	str	xzr, [x19, #80]
Lloh8:
	adrp	x8, _FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #16]
	str	w8, [x19, #8]
	b	LBB0_13
LBB0_2:
Lloh11:
	adrp	x8, _MKA_BOUNDED_HELLO_TIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MKA_BOUNDED_HELLO_TIME@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh13:
	ldr	x8, [x8]
	cmp	x9, x8
	cset	w8, le
	str	w8, [x19, #8]
	add	x1, x20, #16
	mov	x0, x20
	bl	_ieee802_1x_mka_get_lpn
	mov	x21, x0
	ldr	x8, [x22, #8]
Lloh14:
	adrp	x23, _TRUE@GOTPAGE
Lloh15:
	ldr	x23, [x23, _TRUE@GOTPAGEOFF]
	cmp	x0, x8
	b.le	LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _MSG_WARNING@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_WARNING@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x20, #72]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x8, [x23]
	str	x8, [x20, #64]
LBB0_5:
	mov	x0, x21
	bl	_host_to_be32
	str	x0, [x19, #96]
	mov	x0, x20
	mov	x1, x20
	bl	_ieee802_1x_mka_get_lpn
	bl	_host_to_be32
	ldr	w8, [x22, #48]
	cmp	w8, #0
	cset	w8, eq
	ldr	x9, [x22, #16]
Lloh21:
	adrp	x10, _Strict@GOTPAGE
Lloh22:
	ldr	x10, [x10, _Strict@GOTPAGEOFF]
Lloh23:
	ldr	x10, [x10]
	cmp	x9, x10
	cset	w9, ne
	stp	w8, w9, [x19]
	ldr	x8, [x20, #56]
	stp	x8, x0, [x19, #80]
	ldr	w0, [x19, #72]
	ldr	w1, [x20, #24]
	mov	w2, #4
	bl	_os_memcpy
	ldr	x0, [x20, #16]
	bl	_host_to_be32
	str	x0, [x19, #64]
	ldp	x8, x9, [x20, #40]
	stp	x9, x8, [x19, #16]
	ldr	w9, [x20, #32]
	str	w9, [x19, #60]
	ldr	x9, [x20]
	cbz	x9, LBB0_8
; %bb.6:
	ldr	x10, [x20, #16]
	cmp	x9, x10
	b.eq	LBB0_8
; %bb.7:
	ldr	x8, [x23]
	stp	x8, x8, [x19, #32]
	ldr	w0, [x19, #56]
	ldr	w1, [x20, #8]
	mov	w2, #4
	bl	_os_memcpy
	ldr	x0, [x20]
	bl	_host_to_be32
	str	x0, [x19, #48]
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_9
	b	LBB0_10
LBB0_8:
Lloh24:
	adrp	x9, _FALSE@GOTPAGE
Lloh25:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	stp	x9, x9, [x19, #32]
	cbz	x8, LBB0_10
LBB0_9:
	ldr	x8, [x23]
	stp	x8, x8, [x22, #32]
LBB0_10:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x23]
	str	x8, [x22, #24]
LBB0_12:
	mov	x0, x19
	bl	_ieee802_1x_mka_dump_sak_use_body
LBB0_13:
	mov	w0, #0
	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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MKA_SAK_USE,4,2                ; @MKA_SAK_USE
	.comm	_MKA_HDR_LEN,4,2                ; @MKA_HDR_LEN
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_MKA_BOUNDED_HELLO_TIME,8,3     ; @MKA_BOUNDED_HELLO_TIME
	.comm	_MSG_WARNING,4,2                ; @MSG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"KaY: My LPN exhaustion"

	.comm	_Strict,8,3                     ; @Strict
	.no_dead_strip	_ieee802_1x_mka_encode_sak_use_body
.subsections_via_symbols
