	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_teap_write_crypto_binding
_eap_teap_write_crypto_binding:         ## @eap_teap_write_crypto_binding
	.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
	movq	%r8, %r14
	movq	%rcx, %r13
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_TEAP_TLV_MANDATORY@GOTPCREL(%rip), %rax
	movq	_TEAP_TLV_CRYPTO_BINDING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_host_to_be16
	movq	%rax, 32(%rbx)
	movl	$36, %edi
	callq	_host_to_be16
	movq	%rax, 24(%rbx)
	movq	_EAP_TEAP_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	12(%r15), %eax
	movl	%eax, 16(%rbx)
	testq	%r14, %r14
	jne	LBB0_1
## %bb.2:
	movq	_TEAP_CRYPTO_BINDING_MSK_CMAC@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %ecx
	movq	_TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %eax
	shll	$4, %eax
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	orl	%edx, %eax
	movl	%eax, (%rbx)
	movl	12(%rbx), %edi
	movl	12(%r12), %esi
	movl	$4, %edx
	callq	_os_memcpy
	movl	12(%rbx), %edi
	movl	$4, %esi
	callq	_inc_byte_array
	movl	8(%rbx), %edi
	movq	_EAP_TEAP_COMPOUND_MAC_LEN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movl	4(%rbx), %edi
	movl	(%r12), %edx
	xorl	%esi, %esi
	callq	_os_memset
	movl	8(%r15), %edi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movl	4(%rbx), %r9d
	movq	%rbx, %rsi
	movq	%r13, %r8
	callq	_eap_teap_compound_mac
	movl	$-1, %r12d
	testq	%rax, %rax
	js	LBB0_7
## %bb.4:
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movl	8(%r15), %edi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	movl	8(%rbx), %r9d
	movq	%rbx, %rsi
	movq	%r14, %r8
	callq	_eap_teap_compound_mac
	testq	%rax, %rax
	js	LBB0_7
LBB0_6:
	movq	_MSG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	callq	_wpa_printf
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	12(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$4, %ecx
	callq	_wpa_hexdump
	movl	(%r14), %edi
	movl	8(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %ecx
	callq	_wpa_hexdump
	movl	(%r14), %edi
	movl	4(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %ecx
	callq	_wpa_hexdump
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAP_TLV_MANDATORY,4,2         ## @TEAP_TLV_MANDATORY
	.comm	_TEAP_TLV_CRYPTO_BINDING,4,2    ## @TEAP_TLV_CRYPTO_BINDING
	.comm	_EAP_TEAP_VERSION,4,2           ## @EAP_TEAP_VERSION
	.comm	_TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC,4,2 ## @TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC
	.comm	_TEAP_CRYPTO_BINDING_MSK_CMAC,4,2 ## @TEAP_CRYPTO_BINDING_MSK_CMAC
	.comm	_TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE,4,2 ## @TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE
	.comm	_EAP_TEAP_COMPOUND_MAC_LEN,4,2  ## @EAP_TEAP_COMPOUND_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-TEAP: Reply Crypto-Binding TLV: Version %u Received Version %u Flags %u SubType %u"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.1:                               ## @.str.1
	.asciz	"EAP-TEAP: Nonce"

L_.str.2:                               ## @.str.2
	.asciz	"EAP-TEAP: EMSK Compound MAC"

L_.str.3:                               ## @.str.3
	.asciz	"EAP-TEAP: MSK Compound MAC"

	.no_dead_strip	_eap_teap_write_crypto_binding
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_teap_write_crypto_binding
_eap_teap_write_crypto_binding:         ; @eap_teap_write_crypto_binding
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x4
	mov	x24, x3
	mov	x25, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _TEAP_TLV_MANDATORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEAP_TLV_MANDATORY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TEAP_TLV_CRYPTO_BINDING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TEAP_TLV_CRYPTO_BINDING@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_host_to_be16
	str	x0, [x19, #32]
	mov	w0, #36
	bl	_host_to_be16
	str	x0, [x19, #24]
Lloh6:
	adrp	x8, _EAP_TEAP_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EAP_TEAP_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x21, #12]
	stp	w9, w8, [x19, #16]
Lloh9:
	adrp	x8, _TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC@GOTPAGEOFF]
Lloh11:
	adrp	x9, _TEAP_CRYPTO_BINDING_MSK_CMAC@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TEAP_CRYPTO_BINDING_MSK_CMAC@GOTPAGEOFF]
	cmp	x20, #0
	csel	x8, x9, x8, eq
Lloh13:
	adrp	x9, _TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE@GOTPAGEOFF]
	ldr	w23, [x8]
Lloh15:
	ldr	w22, [x9]
	orr	w8, w22, w23, lsl #4
	str	w8, [x19]
	ldr	w0, [x19, #12]
	ldr	w1, [x25, #12]
	mov	w2, #4
	bl	_os_memcpy
	ldr	w0, [x19, #12]
	mov	w1, #4
	bl	_inc_byte_array
	ldr	w0, [x19, #8]
Lloh16:
	adrp	x25, _EAP_TEAP_COMPOUND_MAC_LEN@GOTPAGE
Lloh17:
	ldr	x25, [x25, _EAP_TEAP_COMPOUND_MAC_LEN@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_os_memset
	ldr	w0, [x19, #4]
	ldr	w2, [x25]
	mov	w1, #0
	bl	_os_memset
	ldp	w2, w0, [x21, #4]
	ldr	w3, [x21]
	ldr	w5, [x19, #4]
	mov	x1, x19
	mov	x4, x24
	bl	_eap_teap_compound_mac
	tbnz	x0, #63, LBB0_4
; %bb.1:
	cbz	x20, LBB0_3
; %bb.2:
	ldp	w2, w0, [x21, #4]
	ldr	w3, [x21]
	ldr	w5, [x19, #8]
	mov	x1, x19
	mov	x4, x20
	bl	_eap_teap_compound_mac
	tbnz	x0, #63, LBB0_4
LBB0_3:
Lloh18:
	adrp	x8, _MSG_DEBUG@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_DEBUG@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldp	w3, w2, [x19, #16]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x4, x23
	mov	x5, x22
	bl	_wpa_printf
Lloh23:
	adrp	x20, _MSG_MSGDUMP@GOTPAGE
Lloh24:
	ldr	x20, [x20, _MSG_MSGDUMP@GOTPAGEOFF]
	ldr	w0, [x20]
	ldr	w2, [x19, #12]
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w3, #4
	bl	_wpa_hexdump
	ldr	w0, [x20]
	ldr	w2, [x19, #8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w3, #4
	bl	_wpa_hexdump
	ldr	w0, [x20]
	ldr	w2, [x19, #4]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w3, #4
	bl	_wpa_hexdump
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAP_TLV_MANDATORY,4,2         ; @TEAP_TLV_MANDATORY
	.comm	_TEAP_TLV_CRYPTO_BINDING,4,2    ; @TEAP_TLV_CRYPTO_BINDING
	.comm	_EAP_TEAP_VERSION,4,2           ; @EAP_TEAP_VERSION
	.comm	_TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC,4,2 ; @TEAP_CRYPTO_BINDING_EMSK_AND_MSK_CMAC
	.comm	_TEAP_CRYPTO_BINDING_MSK_CMAC,4,2 ; @TEAP_CRYPTO_BINDING_MSK_CMAC
	.comm	_TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE,4,2 ; @TEAP_CRYPTO_BINDING_SUBTYPE_RESPONSE
	.comm	_EAP_TEAP_COMPOUND_MAC_LEN,4,2  ; @EAP_TEAP_COMPOUND_MAC_LEN
	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-TEAP: Reply Crypto-Binding TLV: Version %u Received Version %u Flags %u SubType %u"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.1:                               ; @.str.1
	.asciz	"EAP-TEAP: Nonce"

l_.str.2:                               ; @.str.2
	.asciz	"EAP-TEAP: EMSK Compound MAC"

l_.str.3:                               ; @.str.3
	.asciz	"EAP-TEAP: MSK Compound MAC"

	.no_dead_strip	_eap_teap_write_crypto_binding
.subsections_via_symbols
