	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_mpa_request
_send_mpa_request:                      ## @send_mpa_request
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, -24(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, -32(%rbp)
	movl	$0, -20(%rbp)
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MPA_KEY_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-32(%rbp), %rsi
	leaq	-20(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_cm_build_mpa_frame
	movq	-32(%rbp), %r8
	movl	-20(%rbp), %r9d
	movq	_SET_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_form_cm_frame
	movq	_NES_TIMER_TYPE_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_schedule_nes_timer
	jmp	LBB0_3
LBB0_1:
	movq	_NES_DBG_CM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_nes_debug
	movl	$-1, %eax
LBB0_3:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NES_DBG_CM,4,2                 ## @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"skb set to NULL\n"

	.comm	_MPA_KEY_REQUEST,4,2            ## @MPA_KEY_REQUEST
	.comm	_SET_ACK,4,2                    ## @SET_ACK
	.comm	_NES_TIMER_TYPE_SEND,4,2        ## @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_mpa_request
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_mpa_request
_send_mpa_request:                      ; @send_mpa_request
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	stur	wzr, [x29, #-20]
	sub	x8, x29, #20
	str	x8, [sp, #16]
	str	wzr, [sp, #12]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MPA_KEY_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPA_KEY_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	add	x1, sp, #16
	add	x2, sp, #12
	mov	x3, #0
	bl	_cm_build_mpa_frame
	ldr	x4, [sp, #16]
	ldr	w5, [sp, #12]
Lloh3:
	adrp	x8, _SET_ACK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SET_ACK@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	mov	w3, #0
	bl	_form_cm_frame
Lloh6:
	adrp	x8, _NES_TIMER_TYPE_SEND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NES_TIMER_TYPE_SEND@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w3, #1
	mov	w4, #0
	bl	_schedule_nes_timer
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _NES_DBG_CM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NES_DBG_CM@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_nes_debug
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_NES_DBG_CM,4,2                 ; @NES_DBG_CM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"skb set to NULL\n"

	.comm	_MPA_KEY_REQUEST,4,2            ; @MPA_KEY_REQUEST
	.comm	_SET_ACK,4,2                    ; @SET_ACK
	.comm	_NES_TIMER_TYPE_SEND,4,2        ; @NES_TIMER_TYPE_SEND
	.no_dead_strip	_send_mpa_request
.subsections_via_symbols
