	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mbox_test_probe
_mbox_test_probe:                       ## @mbox_test_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	%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	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 48(%rbx)
	movq	%rax, %rdi
	callq	_PTR_ERR
	movq	_EBUSY@GOTPCREL(%rip), %r12
	addl	(%r12), %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_resource_size
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_devm_ioremap
	movq	%rax, 48(%rbx)
	jmp	LBB0_7
LBB0_5:
	movq	48(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	$0, 48(%rbx)
LBB0_7:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_platform_get_resource
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 56(%rbx)
	movq	%rax, %rdi
	callq	_PTR_ERR
	addl	(%r12), %eax
	jne	LBB0_9
## %bb.8:
	movq	%r15, %rdi
	callq	_resource_size
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_devm_ioremap
	jmp	LBB0_11
LBB0_9:
	movq	56(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	48(%rbx), %rax
LBB0_11:
	movq	%rax, 56(%rbx)
LBB0_12:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_mbox_test_request_channel
	movq	%rax, 40(%rbx)
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_mbox_test_request_channel
	movq	%rax, 16(%rbx)
	movq	40(%rbx), %rcx
	movq	%rcx, %rdx
	orq	%rax, %rdx
	jne	LBB0_14
## %bb.13:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_14:
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	movq	56(%rbx), %rax
	cmpq	48(%rbx), %rax
	je	LBB0_17
## %bb.16:
	movq	%rcx, 16(%rbx)
LBB0_17:
	movq	%r14, 32(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%rbx, %rdi
	addq	$24, %rdi
	callq	_spin_lock_init
	cmpq	$0, 16(%rbx)
	je	LBB0_19
## %bb.18:
	movq	_MBOX_MAX_MSG_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_kzalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
LBB0_19:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_mbox_test_add_debugfs
	testl	%eax, %eax
	jne	LBB0_21
## %bb.20:
	movq	%rbx, %rdi
	callq	_init_waitqueue_head
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_21
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tx"

L_.str.1:                               ## @.str.1
	.asciz	"rx"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_MBOX_MAX_MSG_LEN,4,2           ## @MBOX_MAX_MSG_LEN
L_.str.2:                               ## @.str.2
	.asciz	"Successfully registered\n"

	.no_dead_strip	_mbox_test_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mbox_test_probe
_mbox_test_probe:                       ; @mbox_test_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x22, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_18
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x23, _IORESOURCE_MEM@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IORESOURCE_MEM@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	x0, [x20, #48]
	bl	_PTR_ERR
Lloh4:
	adrp	x24, _EBUSY@GOTPAGE
Lloh5:
	ldr	x24, [x24, _EBUSY@GOTPAGEOFF]
	ldr	w8, [x24]
	cmn	w0, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_devm_ioremap
	str	x0, [x20, #48]
	b	LBB0_5
LBB0_3:
	ldr	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.4:
	str	xzr, [x20, #48]
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #1
	bl	_platform_get_resource
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_devm_ioremap_resource
	str	x0, [x20, #56]
	bl	_PTR_ERR
	ldr	w8, [x24]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.6:
	mov	x0, x21
	bl	_resource_size
	mov	x2, x0
	ldr	w1, [x21]
	mov	x0, x19
	bl	_devm_ioremap
	str	x0, [x20, #56]
	b	LBB0_9
LBB0_7:
	ldr	x0, [x20, #56]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x20, #48]
	str	x8, [x20, #56]
LBB0_9:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mbox_test_request_channel
	str	x0, [x20, #40]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mbox_test_request_channel
	str	x0, [x20, #16]
	ldr	x8, [x20, #40]
	orr	x9, x8, x0
	cbnz	x9, LBB0_11
; %bb.10:
Lloh10:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_19
LBB0_11:
	cbnz	x0, LBB0_14
; %bb.12:
	ldp	x10, x9, [x20, #48]
	cmp	x9, x10
	b.eq	LBB0_14
; %bb.13:
	str	x8, [x20, #16]
LBB0_14:
	str	x19, [x20, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x20, #24
	bl	_spin_lock_init
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_16
; %bb.15:
Lloh12:
	adrp	x8, _MBOX_MAX_MSG_LEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MBOX_MAX_MSG_LEN@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_devm_kzalloc
	str	x0, [x20, #8]
	cbz	x0, LBB0_18
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_mbox_test_add_debugfs
	cbnz	w0, LBB0_20
; %bb.17:
	mov	x0, x20
	bl	_init_waitqueue_head
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w0, #0
	b	LBB0_20
LBB0_18:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tx"

l_.str.1:                               ; @.str.1
	.asciz	"rx"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_MBOX_MAX_MSG_LEN,4,2           ; @MBOX_MAX_MSG_LEN
l_.str.2:                               ; @.str.2
	.asciz	"Successfully registered\n"

	.no_dead_strip	_mbox_test_probe
.subsections_via_symbols
