	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40iw_build_mpa_v1
_i40iw_build_mpa_v1:                    ## @i40iw_build_mpa_v1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	cmpl	$128, %edx
	je	LBB0_1
## %bb.2:
	cmpl	$129, %edx
	jne	LBB0_5
## %bb.3:
	movq	_IEFT_MPA_KEY_REP@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_1:
	movq	_IEFT_MPA_KEY_REQ@GOTPCREL(%rip), %rax
LBB0_4:
	movl	12(%rbx), %edi
	movl	(%rax), %esi
	movq	_IETF_MPA_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
LBB0_5:
	movq	_IETF_MPA_FLAGS_CRC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 4(%rbx)
	movl	(%r14), %edi
	callq	_htons
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEFT_MPA_KEY_REQ,4,2           ## @IEFT_MPA_KEY_REQ
	.comm	_IETF_MPA_KEY_SIZE,4,2          ## @IETF_MPA_KEY_SIZE
	.comm	_IEFT_MPA_KEY_REP,4,2           ## @IEFT_MPA_KEY_REP
	.comm	_IETF_MPA_FLAGS_CRC,4,2         ## @IETF_MPA_FLAGS_CRC
	.no_dead_strip	_i40iw_build_mpa_v1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40iw_build_mpa_v1
_i40iw_build_mpa_v1:                    ; @i40iw_build_mpa_v1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	cmp	w2, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w2, #129
	b.ne	LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _IEFT_MPA_KEY_REP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEFT_MPA_KEY_REP@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _IEFT_MPA_KEY_REQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEFT_MPA_KEY_REQ@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x19, #12]
	ldr	w1, [x8]
Lloh4:
	adrp	x8, _IETF_MPA_KEY_SIZE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IETF_MPA_KEY_SIZE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	bl	_memcpy
LBB0_5:
Lloh7:
	adrp	x8, _IETF_MPA_FLAGS_CRC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IETF_MPA_FLAGS_CRC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	ldp	w0, w9, [x20]
	stp	w9, w8, [x19, #4]
	bl	_htons
	str	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IEFT_MPA_KEY_REQ,4,2           ; @IEFT_MPA_KEY_REQ
	.comm	_IETF_MPA_KEY_SIZE,4,2          ; @IETF_MPA_KEY_SIZE
	.comm	_IEFT_MPA_KEY_REP,4,2           ; @IEFT_MPA_KEY_REP
	.comm	_IETF_MPA_FLAGS_CRC,4,2         ; @IETF_MPA_FLAGS_CRC
	.no_dead_strip	_i40iw_build_mpa_v1
.subsections_via_symbols
