	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_tlv_result            ## -- Begin function eap_teap_tlv_result
	.p2align	4, 0x90
_eap_teap_tlv_result:                   ## @eap_teap_tlv_result
	.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, %r15d
	movl	%edi, %ebx
	movq	_TEAP_STATUS_FAILURE@GOTPCREL(%rip), %rax
	movq	_TEAP_STATUS_SUCCESS@GOTPCREL(%rip), %r12
	cmpl	%edi, (%rax)
	je	LBB0_3
## %bb.1:
	cmpl	%ebx, (%r12)
	jne	LBB0_5
LBB0_3:
	movl	$24, %edi
	callq	_wpabuf_alloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%rax, %r14
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpl	%ebx, (%r12)
	leaq	L_.str.3(%rip), %rax
	leaq	L_.str.4(%rip), %rcx
	cmoveq	%rax, %rcx
	testl	%r15d, %r15d
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	movq	_TEAP_TLV_MANDATORY@GOTPCREL(%rip), %r12
	movq	_TEAP_TLV_INTERMEDIATE_RESULT@GOTPCREL(%rip), %r13
	cmoveq	_TEAP_TLV_RESULT@GOTPCREL(%rip), %r13
	callq	_wpa_printf
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_wpabuf_put
	movq	%rax, %r15
	movl	(%r13), %edi
	orl	(%r12), %edi
	callq	_host_to_be16
	movq	%rax, 16(%r15)
	movl	$2, %edi
	callq	_host_to_be16
	movq	%rax, 8(%r15)
	movl	%ebx, %edi
	callq	_host_to_be16
	movq	%rax, (%r15)
	jmp	LBB0_6
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAP_STATUS_FAILURE,4,2        ## @TEAP_STATUS_FAILURE
	.comm	_TEAP_STATUS_SUCCESS,4,2        ## @TEAP_STATUS_SUCCESS
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Add %sResult TLV(status=%s)"

L_.str.1:                               ## @.str.1
	.asciz	"Intermediate-"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"Success"

L_.str.4:                               ## @.str.4
	.asciz	"Failure"

	.comm	_TEAP_TLV_MANDATORY,4,2         ## @TEAP_TLV_MANDATORY
	.comm	_TEAP_TLV_INTERMEDIATE_RESULT,4,2 ## @TEAP_TLV_INTERMEDIATE_RESULT
	.comm	_TEAP_TLV_RESULT,4,2            ## @TEAP_TLV_RESULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eap_teap_tlv_result            ; -- Begin function eap_teap_tlv_result
	.p2align	2
_eap_teap_tlv_result:                   ; @eap_teap_tlv_result
	.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
Lloh0:
	adrp	x8, _TEAP_STATUS_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEAP_STATUS_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x22, _TEAP_STATUS_SUCCESS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TEAP_STATUS_SUCCESS@GOTPAGEOFF]
	ldr	w9, [x22]
	cmp	w8, w0
	ccmp	w9, w0, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x19, x0
	mov	w0, #24
	bl	_wpabuf_alloc
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.2:
Lloh5:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh7:
	adrp	x9, l_.str.1@PAGE
Lloh8:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh9:
	ldr	w0, [x8]
Lloh10:
	adrp	x8, l_.str.2@PAGE
Lloh11:
	add	x8, x8, l_.str.2@PAGEOFF
	ldr	w10, [x22]
Lloh12:
	adrp	x11, l_.str.4@PAGE
Lloh13:
	add	x11, x11, l_.str.4@PAGEOFF
Lloh14:
	adrp	x12, l_.str.3@PAGE
Lloh15:
	add	x12, x12, l_.str.3@PAGEOFF
	cmp	w10, w19
	csel	x3, x12, x11, eq
	cmp	w21, #0
	csel	x2, x8, x9, eq
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
Lloh18:
	adrp	x8, _TEAP_TLV_INTERMEDIATE_RESULT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TEAP_TLV_INTERMEDIATE_RESULT@GOTPAGEOFF]
Lloh20:
	adrp	x9, _TEAP_TLV_RESULT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TEAP_TLV_RESULT@GOTPAGEOFF]
	csel	x22, x9, x8, eq
	bl	_wpa_printf
	mov	x0, x20
	mov	w1, #24
	bl	_wpabuf_put
	mov	x21, x0
Lloh22:
	adrp	x8, _TEAP_TLV_MANDATORY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TEAP_TLV_MANDATORY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w0, w9, w8
	bl	_host_to_be16
	str	x0, [x21, #16]
	mov	w0, #2
	bl	_host_to_be16
	str	x0, [x21, #8]
	mov	x0, x19
	bl	_host_to_be16
	str	x0, [x21]
	b	LBB0_4
LBB0_3:
	mov	x20, #0
LBB0_4:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAP_STATUS_FAILURE,4,2        ; @TEAP_STATUS_FAILURE
	.comm	_TEAP_STATUS_SUCCESS,4,2        ; @TEAP_STATUS_SUCCESS
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Add %sResult TLV(status=%s)"

l_.str.1:                               ; @.str.1
	.asciz	"Intermediate-"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"Success"

l_.str.4:                               ; @.str.4
	.asciz	"Failure"

	.comm	_TEAP_TLV_MANDATORY,4,2         ; @TEAP_TLV_MANDATORY
	.comm	_TEAP_TLV_INTERMEDIATE_RESULT,4,2 ; @TEAP_TLV_INTERMEDIATE_RESULT
	.comm	_TEAP_TLV_RESULT,4,2            ; @TEAP_TLV_RESULT
.subsections_via_symbols
