	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee802_1x_mka_encode_basic_body
_ieee802_1x_mka_encode_basic_body:      ## @ieee802_1x_mka_encode_basic_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	40(%rdi), %r12
	movl	(%rdi), %r15d
	addl	$44, %r15d
	movl	%r15d, %edi
	callq	_MKA_ALIGN_LENGTH
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_wpabuf_put
	movq	%rax, %rbx
	movl	24(%r12), %eax
	movl	%eax, 40(%rbx)
	movl	20(%r12), %eax
	movl	%eax, 36(%rbx)
	xorl	%eax, %eax
	cmpq	$0, 32(%r14)
	setne	%al
	movl	20(%r14,%rax,4), %eax
	movl	%eax, 32(%rbx)
	movl	16(%r12), %eax
	movl	%eax, 28(%rbx)
	movl	12(%r12), %eax
	movl	%eax, 24(%rbx)
	movq	_MKA_HDR_LEN@GOTPCREL(%rip), %rax
	subq	(%rax), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_set_mka_param_body_len
	movl	20(%rbx), %edi
	movl	8(%r12), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movl	4(%r12), %eax
	movl	%eax, 16(%rbx)
	movl	12(%rbx), %edi
	movl	16(%r14), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movq	8(%r14), %rdi
	incq	%rdi
	movq	%rdi, 8(%r14)
	callq	_host_to_be32
	movl	%eax, 8(%rbx)
	movl	4(%rbx), %edi
	movl	(%r12), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movl	(%rbx), %edi
	movl	(%r14), %edx
	movl	4(%r14), %esi
	callq	_os_memcpy
	movq	%rbx, %rdi
	callq	_ieee802_1x_mka_dump_basic_body
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MKA_HDR_LEN,8,3                ## @MKA_HDR_LEN
	.no_dead_strip	_ieee802_1x_mka_encode_basic_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_basic_body
_ieee802_1x_mka_encode_basic_body:      ; @ieee802_1x_mka_encode_basic_body
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #40]
	ldr	w8, [x0]
	add	w21, w8, #44
	mov	x0, x21
	bl	_MKA_ALIGN_LENGTH
	mov	x1, x0
	mov	x0, x20
	bl	_wpabuf_put
	mov	x20, x0
	ldur	d0, [x22, #20]
	stur	d0, [x0, #36]
	ldr	x8, [x19, #32]
	mov	w9, #24
	mov	w10, #20
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x19, x8]
	str	w8, [x0, #32]
	ldur	d0, [x22, #12]
	str	d0, [x0, #24]
Lloh0:
	adrp	x8, _MKA_HDR_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MKA_HDR_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	sub	x1, x21, x8
	bl	_set_mka_param_body_len
	ldr	w0, [x20, #20]
	ldr	w1, [x22, #8]
	mov	w2, #4
	bl	_os_memcpy
	ldr	w8, [x22, #4]
	str	w8, [x20, #16]
	ldr	w0, [x20, #12]
	ldr	w1, [x19, #16]
	mov	w2, #4
	bl	_os_memcpy
	ldr	x8, [x19, #8]
	add	x0, x8, #1
	str	x0, [x19, #8]
	bl	_host_to_be32
	str	w0, [x20, #8]
	ldr	w0, [x20, #4]
	ldr	w1, [x22]
	mov	w2, #4
	bl	_os_memcpy
	ldr	w0, [x20]
	ldp	w2, w1, [x19]
	bl	_os_memcpy
	mov	x0, x20
	bl	_ieee802_1x_mka_dump_basic_body
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MKA_HDR_LEN,8,3                ; @MKA_HDR_LEN
	.no_dead_strip	_ieee802_1x_mka_encode_basic_body
.subsections_via_symbols
