	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smscore_start_device           ## -- Begin function smscore_start_device
	.p2align	4, 0x90
_smscore_start_device:                  ## @smscore_start_device
	.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, %rbx
	movl	4(%rdi), %edi
	callq	_smscore_registry_getmode
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_smscore_set_device_mode
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_g_smscore_deviceslock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_kmutex_lock
	movl	(%rbx), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_smscore_notify_callbacks
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_smscore_init_ir
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_sms_info
	movq	%r15, %rdi
	callq	_kmutex_unlock
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_sms_info
LBB0_3:
	movl	%r14d, %eax
	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	"set device mode faile , rc %d"

	.comm	_g_smscore_deviceslock,4,2      ## @g_smscore_deviceslock
L_.str.1:                               ## @.str.1
	.asciz	"device %p started, rc %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smscore_start_device           ; -- Begin function smscore_start_device
	.p2align	2
_smscore_start_device:                  ; @smscore_start_device
	.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, #4]
	bl	_smscore_registry_getmode
	mov	x1, x0
	mov	x0, x19
	bl	_smscore_set_device_mode
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x20, _g_smscore_deviceslock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _g_smscore_deviceslock@GOTPAGEOFF]
	mov	x0, x20
	bl	_kmutex_lock
	ldr	w1, [x19]
	mov	x0, x19
	mov	w2, #1
	bl	_smscore_notify_callbacks
	mov	x21, x0
	mov	x0, x19
	bl	_smscore_init_ir
	stp	x19, x21, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_sms_info
	mov	x0, x20
	bl	_kmutex_unlock
	mov	x20, x21
	b	LBB0_3
LBB0_2:
	mov	x20, x0
	str	x20, [sp]
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sms_info
LBB0_3:
	mov	x0, x20
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set device mode faile , rc %d"

	.comm	_g_smscore_deviceslock,4,2      ; @g_smscore_deviceslock
l_.str.1:                               ; @.str.1
	.asciz	"device %p started, rc %d"

.subsections_via_symbols
