	.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	%esi, %r14d
	movq	%rdi, %r15
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_EAP_TNC_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	32(%r15), %rdi
	callq	_wpabuf_len
	movq	%rax, %r13
	movq	(%r15), %rcx
	subq	%rcx, %r13
	leaq	1(%r13), %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), %r12d
	testq	%rcx, %rcx
	jne	LBB0_3
## %bb.2:
	movq	_EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	addq	$-4, %rax
LBB0_3:
	movq	%rax, %r13
LBB0_4:
	movq	_EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	movl	(%rbx), %ecx
	andl	%r12d, %ecx
	setne	%al
	leaq	1(%r13,%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_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %r8d
	callq	_eap_msg_alloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_wpabuf_put_u8
	testl	%r12d, (%rbx)
	je	LBB0_7
## %bb.6:
	movq	32(%r15), %rdi
	callq	_wpabuf_len
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_wpabuf_put_be32
LBB0_7:
	movq	32(%r15), %rdi
	callq	_wpabuf_head_u8
	addq	(%r15), %rax
	movq	%r14, %rdi
	movq	%rax, %rsi
	movq	%r13, %rdx
	callq	_wpabuf_put_data
	movq	(%r15), %rbx
	addq	%r13, %rbx
	movq	%rbx, (%r15)
	movq	32(%r15), %rdi
	callq	_wpabuf_len
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	cmpq	%rax, %rbx
	jne	LBB0_12
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	32(%r15), %rdi
	callq	_wpabuf_free
	movq	$0, 32(%r15)
	movq	$0, (%r15)
	cmpl	$0, 12(%r15)
	je	LBB0_10
## %bb.9:
	movq	_FAIL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_12:
	movq	32(%r15), %rdi
	callq	_wpabuf_len
	subq	(%r15), %rax
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	24(%r15), %rcx
	movq	_FAIL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_14
## %bb.13:
	movl	$1, 12(%r15)
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_14:
	movq	_DONE@GOTPCREL(%rip), %rdx
	movq	_WAIT_FRAG_ACK@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_16
## %bb.15:
	movl	$1, 16(%r15)
	jmp	LBB0_16
LBB0_10:
	cmpl	$0, 16(%r15)
	je	LBB0_17
## %bb.11:
	movq	_DONE@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rsi
	movq	%r15, %rdi
	callq	_eap_tnc_set_state
LBB0_17:
	movq	%r14, %rax
	addq	$8, %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	"EAP-TNC: Generating Request"

	.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_REQUEST,4,2           ## @EAP_CODE_REQUEST
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TNC: Sending out %lu bytes (message sent completely)"

	.comm	_FAIL,8,3                       ## @FAIL
	.comm	_DONE,8,3                       ## @DONE
L_.str.2:                               ## @.str.2
	.asciz	"EAP-TNC: Sending out %lu bytes (%lu more to send)"

	.comm	_WAIT_FRAG_ACK,8,3              ## @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, #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, x1
	mov	x19, x0
Lloh0:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
Lloh4:
	adrp	x8, _EAP_TNC_VERSION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EAP_TNC_VERSION@GOTPAGEOFF]
Lloh6:
	ldr	w22, [x8]
	ldr	x0, [x19, #32]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x21, x0, x8
	add	x10, x21, #1
	ldrsw	x9, [x19, #8]
Lloh7:
	adrp	x24, _EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _EAP_TNC_FLAGS_LENGTH_INCLUDED@GOTPAGEOFF]
	cmp	x10, x9
	b.ls	LBB0_3
; %bb.1:
	sub	x21, x9, #1
Lloh9:
	adrp	x9, _EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EAP_TNC_FLAGS_MORE_FRAGMENTS@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w22, w9, w22
	cbnz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x24]
	orr	w22, w8, w22
	sub	x21, x21, #4
LBB0_3:
	ldr	w8, [x24]
	tst	w8, w22
	add	x8, x21, #5
	csinc	x2, x8, x21, ne
Lloh12:
	adrp	x8, _EAP_VENDOR_IETF@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EAP_VENDOR_IETF@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x8, _EAP_TYPE_TNC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EAP_TYPE_TNC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _EAP_CODE_REQUEST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EAP_CODE_REQUEST@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	mov	x4, x20
	bl	_eap_msg_alloc
	mov	x20, x0
	cbz	x0, LBB0_17
; %bb.4:
	mov	x0, x20
	mov	x1, x22
	bl	_wpabuf_put_u8
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:
	ldr	x0, [x19, #32]
	bl	_wpabuf_len
	mov	x1, x0
	mov	x0, x20
	bl	_wpabuf_put_be32
LBB0_6:
	ldr	x0, [x19, #32]
	bl	_wpabuf_head_u8
	ldr	x8, [x19]
	add	x1, x8, x0
	mov	x0, x20
	mov	x2, x21
	bl	_wpabuf_put_data
	ldr	x8, [x19]
	add	x24, x8, x21
	str	x24, [x19]
	ldr	x0, [x19, #32]
	bl	_wpabuf_len
	ldr	w22, [x23]
	cmp	x24, x0
	b.ne	LBB0_9
; %bb.7:
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_wpa_printf
	ldr	x0, [x19, #32]
	bl	_wpabuf_free
	str	xzr, [x19, #32]
	str	xzr, [x19]
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_14
; %bb.8:
Lloh23:
	adrp	x8, _FAIL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FAIL@GOTPAGEOFF]
	b	LBB0_16
LBB0_9:
	ldr	x0, [x19, #32]
	bl	_wpabuf_len
	ldr	x8, [x19]
	sub	x8, x0, x8
	stp	x21, x8, [sp]
Lloh25:
	adrp	x1, l_.str.2@PAGE
Lloh26:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_wpa_printf
	ldr	x8, [x19, #24]
Lloh27:
	adrp	x9, _FAIL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _FAIL@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #12]
	b	LBB0_13
LBB0_11:
Lloh30:
	adrp	x9, _DONE@GOTPAGE
Lloh31:
	ldr	x9, [x9, _DONE@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x19, #16]
LBB0_13:
Lloh33:
	adrp	x8, _WAIT_FRAG_ACK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _WAIT_FRAG_ACK@GOTPAGEOFF]
	b	LBB0_16
LBB0_14:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_17
; %bb.15:
Lloh35:
	adrp	x8, _DONE@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DONE@GOTPAGEOFF]
LBB0_16:
	ldr	x1, [x8]
	mov	x0, x19
	bl	_eap_tnc_set_state
LBB0_17:
	mov	x0, x20
	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 AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TNC: Generating Request"

	.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_REQUEST,4,2           ; @EAP_CODE_REQUEST
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TNC: Sending out %lu bytes (message sent completely)"

	.comm	_FAIL,8,3                       ; @FAIL
	.comm	_DONE,8,3                       ; @DONE
l_.str.2:                               ; @.str.2
	.asciz	"EAP-TNC: Sending out %lu bytes (%lu more to send)"

	.comm	_WAIT_FRAG_ACK,8,3              ; @WAIT_FRAG_ACK
	.no_dead_strip	_eap_tnc_build_msg
.subsections_via_symbols
