	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cros_ec_rpmsg_probe
_cros_ec_rpmsg_probe:                   ## @cros_ec_rpmsg_probe
	.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
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	(%r14), %edx
	movq	%r15, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%r15, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	_cros_ec_cmd_xfer_rpmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_cros_ec_pkt_xfer_rpmsg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 8(%rbx)
	movabsq	$17179869192, %rax              ## imm = 0x400000008
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dev_set_drvdata
	movq	%r15, 16(%r14)
	movq	%r14, %rdi
	addq	$8, %rdi
	callq	_init_completion
	movq	_cros_ec_rpmsg_host_event_function@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_INIT_WORK
	movq	%r15, %rdi
	callq	_cros_ec_rpmsg_create_ept
	movl	%eax, 4(%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	%rbx, %rdi
	callq	_cros_ec_register
	movl	%eax, %ebx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	jns	LBB0_6
## %bb.5:
	movl	4(%r14), %edi
	callq	_rpmsg_destroy_ept
	movq	%r14, %rdi
	callq	_cancel_work_sync
	movl	%ebx, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cros_ec_cmd_xfer_rpmsg,4,2     ## @cros_ec_cmd_xfer_rpmsg
	.comm	_cros_ec_pkt_xfer_rpmsg,4,2     ## @cros_ec_pkt_xfer_rpmsg
	.comm	_cros_ec_rpmsg_host_event_function,4,2 ## @cros_ec_rpmsg_host_event_function
	.no_dead_strip	_cros_ec_rpmsg_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function cros_ec_rpmsg_probe
lCPI0_0:
	.long	8                               ; 0x8
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cros_ec_rpmsg_probe:                   ; @cros_ec_rpmsg_probe
	.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	x20, x0
Lloh0:
	adrp	x19, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x19]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	ldr	w2, [x19]
	mov	x0, x20
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x19, x0
	stp	x0, x20, [x21, #24]
Lloh2:
	adrp	x8, _cros_ec_cmd_xfer_rpmsg@GOTPAGE
Lloh3:
	ldr	x8, [x8, _cros_ec_cmd_xfer_rpmsg@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _cros_ec_pkt_xfer_rpmsg@GOTPAGE
Lloh6:
	ldr	x9, [x9, _cros_ec_pkt_xfer_rpmsg@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #12]
	mov	x0, x20
	bl	_dev_name
	str	w0, [x21, #8]
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x21]
	mov	x0, x20
	mov	x1, x21
	bl	_dev_set_drvdata
	str	x20, [x19, #16]
	add	x0, x19, #8
	bl	_init_completion
Lloh10:
	adrp	x8, _cros_ec_rpmsg_host_event_function@GOTPAGE
Lloh11:
	ldr	x8, [x8, _cros_ec_rpmsg_host_event_function@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_INIT_WORK
	mov	x0, x20
	bl	_cros_ec_rpmsg_create_ept
	str	w0, [x19, #4]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_cros_ec_register
	tbnz	w0, #31, LBB0_7
; %bb.4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	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
LBB0_7:
	mov	x20, x0
	ldr	w0, [x19, #4]
	bl	_rpmsg_destroy_ept
	mov	x0, x19
	bl	_cancel_work_sync
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cros_ec_cmd_xfer_rpmsg,4,2     ; @cros_ec_cmd_xfer_rpmsg
	.comm	_cros_ec_pkt_xfer_rpmsg,4,2     ; @cros_ec_pkt_xfer_rpmsg
	.comm	_cros_ec_rpmsg_host_event_function,4,2 ; @cros_ec_rpmsg_host_event_function
	.no_dead_strip	_cros_ec_rpmsg_probe
.subsections_via_symbols
