	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scom_probe
_scom_probe:                            ## @scom_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, %r14
	callq	_to_fsi_dev
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	leaq	40(%r15), %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_get_device
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	%rbx, 32(%r15)
	movq	_fsi_cdev_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r15)
	movq	%r14, 8(%r15)
	movq	_scom_free@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r15, %rdi
	callq	_device_initialize
	movq	_fsi_dev_scom@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_fsi_get_new_minor
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	movl	-28(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_set_name
	movq	%r15, %rbx
	addq	$24, %rbx
	movq	_scom_fops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_cdev_init
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_cdev_device_add
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_err
	movl	(%r15), %edi
	callq	_fsi_free_minor
LBB0_9:
	movq	%r15, %rdi
	callq	_put_device
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	%r15, %rdi
	callq	_kfree
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_fsi_cdev_type,4,2              ## @fsi_cdev_type
	.comm	_scom_free,4,2                  ## @scom_free
	.comm	_fsi_dev_scom,4,2               ## @fsi_dev_scom
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"scom%d"

	.comm	_scom_fops,4,2                  ## @scom_fops
L_.str.1:                               ## @.str.1
	.asciz	"Error %d creating char device %s\n"

	.no_dead_strip	_scom_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scom_probe
_scom_probe:                            ; @scom_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	x20, x0
	bl	_to_fsi_dev
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	add	x0, x19, #40
	bl	_mutex_init
	mov	x0, x20
	bl	_get_device
	cbz	w0, LBB0_7
; %bb.2:
	str	x21, [x19, #32]
Lloh3:
	adrp	x8, _fsi_cdev_type@GOTPAGE
Lloh4:
	ldr	x8, [x8, _fsi_cdev_type@GOTPAGEOFF]
	stp	x20, x8, [x19, #8]
Lloh5:
	adrp	x8, _scom_free@GOTPAGE
Lloh6:
	ldr	x8, [x8, _scom_free@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_device_initialize
Lloh8:
	adrp	x8, _fsi_dev_scom@GOTPAGE
Lloh9:
	ldr	x8, [x8, _fsi_dev_scom@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x19
	bl	_fsi_get_new_minor
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w2, [sp, #12]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_set_name
	add	x21, x19, #24
Lloh13:
	adrp	x1, _scom_fops@GOTPAGE
Lloh14:
	ldr	x1, [x1, _scom_fops@GOTPAGEOFF]
	mov	x0, x21
	bl	_cdev_init
	mov	x0, x21
	mov	x1, x19
	bl	_cdev_device_add
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.4:
	mov	x0, x19
	bl	_dev_name
	mov	x3, x0
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_err
	ldr	w0, [x19]
	bl	_fsi_free_minor
LBB0_5:
	mov	x0, x19
	bl	_put_device
	b	LBB0_9
LBB0_6:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_kfree
Lloh19:
	adrp	x8, _ENODEV@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_fsi_cdev_type,4,2              ; @fsi_cdev_type
	.comm	_scom_free,4,2                  ; @scom_free
	.comm	_fsi_dev_scom,4,2               ; @fsi_dev_scom
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scom%d"

	.comm	_scom_fops,4,2                  ; @scom_fops
l_.str.1:                               ; @.str.1
	.asciz	"Error %d creating char device %s\n"

	.no_dead_strip	_scom_probe
.subsections_via_symbols
