	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TNC_TNCS_SendMessage
_TNC_TNCS_SendMessage:                  ## @TNC_TNCS_SendMessage
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	callq	_wpa_printf
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	callq	_wpa_hexdump_ascii
	movq	%r14, %rdi
	callq	_tncs_get_imv
	movq	_TNC_RESULT_INVALID_PARAMETER@GOTPCREL(%rip), %r15
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movl	%ebx, %edi
	callq	_tncs_get_conn
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdx
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_base64_encode
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %r12
	movq	(%rbx), %rax
	shlq	$4, %r14
	movq	(%rax,%r14), %rdi
	callq	_os_free
	movq	(%rbx), %rax
	movq	$0, 8(%rax,%r14)
	movq	-48(%rbp), %rdi
	addq	$100, %rdi
	callq	_os_zalloc
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	-48(%rbp), %rsi
	addq	$100, %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rdi
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	%r12, %r8
	callq	_os_snprintf
	movq	(%rbx), %rcx
	movq	%rax, 8(%rcx,%r14)
	movq	_TNC_RESULT_SUCCESS@GOTPCREL(%rip), %r15
	jmp	LBB0_7
LBB0_3:
	movq	_TNC_RESULT_FATAL@GOTPCREL(%rip), %r15
	jmp	LBB0_8
LBB0_5:
	movq	_TNC_RESULT_OTHER@GOTPCREL(%rip), %r15
LBB0_7:
	movq	%r12, %rdi
	callq	_os_free
LBB0_8:
	movl	(%r15), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TNC: TNC_TNCS_SendMessage(imvID=%lu connectionID=%lu messageType=%lu)"

L_.str.1:                               ## @.str.1
	.asciz	"TNC: TNC_TNCS_SendMessage"

	.comm	_TNC_RESULT_INVALID_PARAMETER,4,2 ## @TNC_RESULT_INVALID_PARAMETER
	.comm	_TNC_RESULT_FATAL,4,2           ## @TNC_RESULT_FATAL
	.comm	_TNC_RESULT_OTHER,4,2           ## @TNC_RESULT_OTHER
L_.str.2:                               ## @.str.2
	.asciz	"<IMC-IMV-Message><Type>%08X</Type><Base64>%s</Base64></IMC-IMV-Message>"

	.comm	_TNC_RESULT_SUCCESS,4,2         ## @TNC_RESULT_SUCCESS
	.no_dead_strip	_TNC_TNCS_SendMessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TNC_TNCS_SendMessage
_TNC_TNCS_SendMessage:                  ; @TNC_TNCS_SendMessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_wpa_printf
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x23
	mov	x3, x21
	bl	_wpa_hexdump_ascii
	mov	x0, x19
	bl	_tncs_get_imv
	cbz	x0, LBB0_5
; %bb.1:
	mov	x0, x22
	bl	_tncs_get_conn
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x21
	bl	_base64_encode
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x8, [x22]
	lsl	x23, x19, #4
	ldr	x0, [x8, x23]
	bl	_os_free
	ldr	x8, [x22]
	add	x8, x8, x23
	str	xzr, [x8, #8]
	ldr	x8, [sp, #8]
	add	x0, x8, #100
	bl	_os_zalloc
	ldr	x8, [x22]
	str	x0, [x8, x23]
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [sp, #8]
	add	x1, x8, #100
Lloh6:
	adrp	x2, l_.str.2@PAGE
Lloh7:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x3, x20
	mov	x4, x21
	bl	_os_snprintf
	ldr	x8, [x22]
	add	x8, x8, x19, lsl #4
	str	x0, [x8, #8]
Lloh8:
	adrp	x19, _TNC_RESULT_SUCCESS@GOTPAGE
Lloh9:
	ldr	x19, [x19, _TNC_RESULT_SUCCESS@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh10:
	adrp	x19, _TNC_RESULT_INVALID_PARAMETER@GOTPAGE
Lloh11:
	ldr	x19, [x19, _TNC_RESULT_INVALID_PARAMETER@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh12:
	adrp	x19, _TNC_RESULT_FATAL@GOTPAGE
Lloh13:
	ldr	x19, [x19, _TNC_RESULT_FATAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x19, _TNC_RESULT_OTHER@GOTPAGE
Lloh15:
	ldr	x19, [x19, _TNC_RESULT_OTHER@GOTPAGEOFF]
LBB0_8:
	mov	x0, x21
	bl	_os_free
LBB0_9:
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TNC: TNC_TNCS_SendMessage(imvID=%lu connectionID=%lu messageType=%lu)"

l_.str.1:                               ; @.str.1
	.asciz	"TNC: TNC_TNCS_SendMessage"

	.comm	_TNC_RESULT_INVALID_PARAMETER,4,2 ; @TNC_RESULT_INVALID_PARAMETER
	.comm	_TNC_RESULT_FATAL,4,2           ; @TNC_RESULT_FATAL
	.comm	_TNC_RESULT_OTHER,4,2           ; @TNC_RESULT_OTHER
l_.str.2:                               ; @.str.2
	.asciz	"<IMC-IMV-Message><Type>%08X</Type><Base64>%s</Base64></IMC-IMV-Message>"

	.comm	_TNC_RESULT_SUCCESS,4,2         ; @TNC_RESULT_SUCCESS
	.no_dead_strip	_TNC_TNCS_SendMessage
.subsections_via_symbols
