	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msg_to_mpoad                   ## -- Begin function msg_to_mpoad
	.p2align	4, 0x90
_msg_to_mpoad:                          ## @msg_to_mpoad
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_2
## %bb.3:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$4, %edi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	$4, %esi
	callq	_skb_put
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$4, %edx
	callq	_skb_copy_to_linear_data
	movl	(%rbx), %edi
	movl	4(%r14), %esi
	callq	_atm_force_charge
	movl	(%rbx), %edi
	callq	_sk_atm
	movq	%rax, %rbx
	leaq	8(%rax), %rdi
	movq	%r14, %rsi
	callq	_skb_queue_tail
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_2:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_printk
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mpoa: msg_to_mpoad: mesg %d to a non-existent mpoad\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_msg_to_mpoad                   ; -- Begin function msg_to_mpoad
	.p2align	2
_msg_to_mpoad:                          ; @msg_to_mpoad
	.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
	mov	x21, x0
	cbz	x1, LBB0_4
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #4
	bl	_alloc_skb
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
	mov	w1, #4
	bl	_skb_put
	mov	x0, x20
	mov	x1, x21
	mov	w2, #4
	bl	_skb_copy_to_linear_data
	ldr	w0, [x19]
	ldr	w1, [x20, #4]
	bl	_atm_force_charge
	ldr	w0, [x19]
	bl	_sk_atm
	mov	x19, x0
	add	x0, x0, #8
	mov	x1, x20
	bl	_skb_queue_tail
	ldr	x8, [x19]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	mov	w0, #0
	b	LBB0_7
LBB0_4:
	ldr	w1, [x21]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printk
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mpoa: msg_to_mpoad: mesg %d to a non-existent mpoad\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
