	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_tnc_build_msg
_eap_tnc_build_msg:                     ## @eap_tnc_build_msg
	.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, %rbx
	movq	%rdi, %r15
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rsi)
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	_EAP_TNC_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	movq	%rax, %r14
	movq	(%r15), %rcx
	subq	%rcx, %r14
	leaq	1(%r14), %rdx
	movslq	8(%r15), %rax
	cmpq	%rax, %rdx
	jbe	LBB0_4
## %bb.1:
	decq	%rax
	movq	_EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPCREL(%rip), %rdx
	orl	(%rdx), %r13d
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r13d
	addq	$-4, %rax
LBB0_3:
	movq	%rax, %r14
LBB0_4:
	movq	_EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	setne	%al
	leaq	1(%r14,%rax,4), %rdx
	movq	_EAP_VENDOR_IETF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_EAP_TYPE_TNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_EAP_CODE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r12d, %r8d
	callq	_eap_msg_alloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_wpabuf_put_u8
	movq	_EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_7
## %bb.6:
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_wpabuf_put_be32
LBB0_7:
	movq	16(%r15), %rdi
	callq	_wpabuf_head_u8
	addq	(%r15), %rax
	movq	%r12, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_wpabuf_put_data
	movq	(%r15), %rbx
	addq	%r14, %rbx
	movq	%rbx, (%r15)
	movq	_METHOD_MAY_CONT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	movq	_DECISION_FAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	cmpq	%rax, %rbx
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	%r13d, %edi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	16(%r15), %rdi
	callq	_wpabuf_free
	movq	$0, 16(%r15)
	movq	$0, (%r15)
	jmp	LBB0_10
LBB0_9:
	movq	16(%r15), %rdi
	callq	_wpabuf_len
	subq	(%r15), %rax
	leaq	L_.str.2(%rip), %rsi
	movl	%r13d, %edi
	movq	%r14, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TNC: Generating Response"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_EAP_TNC_VERSION,4,2            ## @EAP_TNC_VERSION
	.comm	_EAP_TNC_FLAGS_MORE_FRAGMENTS,4,2 ## @EAP_TNC_FLAGS_MORE_FRAGMENTS
	.comm	_EAP_TNC_FLAGS_LENGTH_INCLUDED,4,2 ## @EAP_TNC_FLAGS_LENGTH_INCLUDED
	.comm	_EAP_VENDOR_IETF,4,2            ## @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TNC,4,2               ## @EAP_TYPE_TNC
	.comm	_EAP_CODE_RESPONSE,4,2          ## @EAP_CODE_RESPONSE
	.comm	_METHOD_MAY_CONT,4,2            ## @METHOD_MAY_CONT
	.comm	_DECISION_FAIL,4,2              ## @DECISION_FAIL
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TNC: Sending out %lu bytes (message sent completely)"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TNC: Sending out %lu bytes (%lu more to send)"

	.comm	_WAIT_FRAG_ACK,4,2              ## @WAIT_FRAG_ACK
	.no_dead_strip	_eap_tnc_build_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_tnc_build_msg
_eap_tnc_build_msg:                     ; @eap_tnc_build_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x1, #12]
Lloh3:
	adrp	x24, _MSG_DEBUG@GOTPAGE
Lloh4:
	ldr	x24, [x24, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x20, #8]
Lloh10:
	adrp	x8, _EAP_TNC_VERSION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EAP_TNC_VERSION@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x21, x0, x8
	add	x10, x21, #1
	ldrsw	x9, [x19, #8]
Lloh13:
	adrp	x25, _EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh14:
	ldr	x25, [x25, _EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
	cmp	x10, x9
	b.ls	LBB0_3
; %bb.1:
	sub	x21, x9, #1
Lloh15:
	adrp	x9, _EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w23, w9, w23
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x25]
	orr	w23, w8, w23
	sub	x21, x21, #4
LBB0_3:
	ldr	w8, [x25]
	tst	w8, w23
	add	x8, x21, #5
	csinc	x2, x8, x21, ne
Lloh18:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x8, _EAP_TYPE_TNC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EAP_TYPE_TNC@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _EAP_CODE_RESPONSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EAP_CODE_RESPONSE@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x4, x22
	bl	_eap_msg_alloc
	mov	x22, x0
	cbz	x0, LBB0_9
; %bb.4:
	mov	x0, x22
	mov	x1, x23
	bl	_wpabuf_put_u8
	ldr	w8, [x25]
	tst	w8, w23
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x22
	bl	_wpabuf_put_be32
LBB0_6:
	ldr	x0, [x19, #16]
	bl	_wpabuf_head_u8
	ldr	x8, [x19]
	add	x1, x8, x0
	mov	x0, x22
	mov	x2, x21
	bl	_wpabuf_put_data
	ldr	x8, [x19]
	add	x23, x8, x21
	str	x23, [x19]
Lloh27:
	adrp	x8, _METHOD_MAY_CONT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _METHOD_MAY_CONT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _DECISION_FAIL@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DECISION_FAIL@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	ldr	w20, [x24]
	cmp	x23, x0
	b.ne	LBB0_8
; %bb.7:
	str	x21, [sp]
Lloh33:
	adrp	x1, l_.str.1@PAGE
Lloh34:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
	ldr	x0, [x19, #16]
	bl	_wpabuf_free
	str	xzr, [x19, #16]
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x19, #16]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x8, x0, x8
	stp	x21, x8, [sp]
Lloh35:
	adrp	x1, l_.str.2@PAGE
Lloh36:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_wpa_printf
Lloh37:
	adrp	x8, _WAIT_FRAG_ACK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _WAIT_FRAG_ACK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TNC: Generating Response"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_EAP_TNC_VERSION,4,2            ; @EAP_TNC_VERSION
	.comm	_EAP_TNC_FLAGS_MORE_FRAGMENTS,4,2 ; @EAP_TNC_FLAGS_MORE_FRAGMENTS
	.comm	_EAP_TNC_FLAGS_LENGTH_INCLUDED,4,2 ; @EAP_TNC_FLAGS_LENGTH_INCLUDED
	.comm	_EAP_VENDOR_IETF,4,2            ; @EAP_VENDOR_IETF
	.comm	_EAP_TYPE_TNC,4,2               ; @EAP_TYPE_TNC
	.comm	_EAP_CODE_RESPONSE,4,2          ; @EAP_CODE_RESPONSE
	.comm	_METHOD_MAY_CONT,4,2            ; @METHOD_MAY_CONT
	.comm	_DECISION_FAIL,4,2              ; @DECISION_FAIL
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TNC: Sending out %lu bytes (message sent completely)"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TNC: Sending out %lu bytes (%lu more to send)"

	.comm	_WAIT_FRAG_ACK,4,2              ; @WAIT_FRAG_ACK
	.no_dead_strip	_eap_tnc_build_msg
.subsections_via_symbols
