	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rave_sp_probe
_rave_sp_probe:                         ## @rave_sp_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
	movl	(%rdi), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 32(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r15, %rdi
	callq	_of_device_get_match_data
	movl	%eax, 28(%r14)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	leaq	24(%r14), %rdi
	callq	_mutex_init
	leaq	20(%r14), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	addq	$16, %rdi
	callq	_BLOCKING_INIT_NOTIFIER_HEAD
	movq	_rave_sp_serdev_device_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	callq	_serdev_device_set_client_ops
	movq	%r15, %rdi
	movq	%r15, %rsi
	callq	_devm_serdev_device_open
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.8:
	movl	-28(%rbp), %esi
	movq	%r15, %rdi
	callq	_serdev_device_set_baudrate
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_serdev_device_set_flow_control
	movq	_SERDEV_PARITY_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_serdev_device_set_parity
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_14
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_10:
	movq	%r14, %rdi
	callq	_rave_sp_get_status
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_warn
	leaq	L_.str(%rip), %rdx
	movq	%rdx, (%r14)
	movq	%rdx, 8(%r14)
	jmp	LBB0_13
LBB0_11:
	movq	(%r14), %rdx
LBB0_13:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	8(%r14), %rdx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movq	%r15, %rdi
	callq	_devm_of_platform_populate
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown\n"

L_.str.1:                               ## @.str.1
	.asciz	"current-speed"

L_.str.2:                               ## @.str.2
	.asciz	"'current-speed' is not specified in device node\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_rave_sp_serdev_device_ops,4,2  ## @rave_sp_serdev_device_ops
	.comm	_SERDEV_PARITY_NONE,4,2         ## @SERDEV_PARITY_NONE
L_.str.3:                               ## @.str.3
	.asciz	"Failed to set parity\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get firmware status: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"Firmware version: %s"

L_.str.6:                               ## @.str.6
	.asciz	"Bootloader version: %s"

	.no_dead_strip	_rave_sp_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rave_sp_probe
_rave_sp_probe:                         ; @rave_sp_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_3:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_4:
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
	str	x19, [x0, #32]
	mov	x0, x19
	mov	x1, x20
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_of_device_get_match_data
	str	w0, [x20, #28]
	cbz	w0, LBB0_10
; %bb.6:
	add	x0, x20, #24
	bl	_mutex_init
	add	x0, x20, #20
	bl	_mutex_init
	add	x0, x20, #16
	bl	_BLOCKING_INIT_NOTIFIER_HEAD
Lloh9:
	adrp	x1, _rave_sp_serdev_device_ops@GOTPAGE
Lloh10:
	ldr	x1, [x1, _rave_sp_serdev_device_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_serdev_device_set_client_ops
	mov	x0, x19
	mov	x1, x19
	bl	_devm_serdev_device_open
	mov	x21, x0
	cbnz	w0, LBB0_3
; %bb.7:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_serdev_device_set_baudrate
	mov	x0, x19
	mov	w1, #0
	bl	_serdev_device_set_flow_control
Lloh11:
	adrp	x8, _SERDEV_PARITY_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SERDEV_PARITY_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_serdev_device_set_parity
	cbz	w0, LBB0_11
; %bb.8:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_3
LBB0_9:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_2
LBB0_11:
	mov	x0, x20
	bl	_rave_sp_get_status
	cbz	w0, LBB0_13
; %bb.12:
	mov	x2, x0
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh22:
	adrp	x2, l_.str@PAGE
Lloh23:
	add	x2, x2, l_.str@PAGEOFF
	stp	x2, x2, [x20]
	b	LBB0_14
LBB0_13:
	ldr	x2, [x20]
LBB0_14:
Lloh24:
	adrp	x1, l_.str.5@PAGE
Lloh25:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	x2, [x20, #8]
Lloh26:
	adrp	x1, l_.str.6@PAGE
Lloh27:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	x0, x19
	bl	_devm_of_platform_populate
	mov	x21, x0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown\n"

l_.str.1:                               ; @.str.1
	.asciz	"current-speed"

l_.str.2:                               ; @.str.2
	.asciz	"'current-speed' is not specified in device node\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_rave_sp_serdev_device_ops,4,2  ; @rave_sp_serdev_device_ops
	.comm	_SERDEV_PARITY_NONE,4,2         ; @SERDEV_PARITY_NONE
l_.str.3:                               ; @.str.3
	.asciz	"Failed to set parity\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get firmware status: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"Firmware version: %s"

l_.str.6:                               ; @.str.6
	.asciz	"Bootloader version: %s"

	.no_dead_strip	_rave_sp_probe
.subsections_via_symbols
