	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmControlDriver               ## -- Begin function ScmControlDriver
	.p2align	4, 0x90
_ScmControlDriver:                      ## @ScmControlDriver
	.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
	movl	%edx, %r14d
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINT
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.1:
	cmpl	$128, %ebx
	jne	LBB0_8
## %bb.2:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ScmGetDriverStatus
	movl	%eax, %ebx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_9
## %bb.3:
	movl	(%r15), %eax
	movq	_SERVICE_RUNNING@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.4:
	movq	%r15, %rdi
	callq	_ScmUnloadDriver
	movl	%eax, %ebx
	movq	_ERROR_INVALID_SERVICE_CONTROL@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_6
## %bb.5:
	movl	$0, 4(%r15)
	jmp	LBB0_9
LBB0_8:
	movq	_ERROR_INVALID_SERVICE_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_9
LBB0_6:
	movq	_SERVICE_STOP_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r15)
LBB0_7:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_ScmGetDriverStatus
	movl	%eax, %ebx
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DPRINT
	movl	%ebx, %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	"ScmControlDriver() called\n"

	.comm	_ERROR_SUCCESS,4,2              ## @ERROR_SUCCESS
	.comm	_SERVICE_RUNNING,4,2            ## @SERVICE_RUNNING
	.comm	_ERROR_INVALID_SERVICE_CONTROL,4,2 ## @ERROR_INVALID_SERVICE_CONTROL
	.comm	_SERVICE_STOP_PENDING,4,2       ## @SERVICE_STOP_PENDING
L_.str.1:                               ## @.str.1
	.asciz	"ScmControlDriver() done (Erorr: %lu)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ScmControlDriver               ; -- Begin function ScmControlDriver
	.p2align	2
_ScmControlDriver:                      ; @ScmControlDriver
	.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, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT
	cmp	w21, #129
	b.eq	LBB0_8
; %bb.1:
	cmp	w21, #128
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	bl	_ScmGetDriverStatus
	mov	x21, x0
Lloh2:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.3:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _SERVICE_RUNNING@GOTPAGE
Lloh6:
	ldr	x9, [x9, _SERVICE_RUNNING@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.4:
	mov	x0, x20
	bl	_ScmUnloadDriver
Lloh8:
	adrp	x8, _ERROR_INVALID_SERVICE_CONTROL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERROR_INVALID_SERVICE_CONTROL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x21, x0
	str	wzr, [x20, #4]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _ERROR_INVALID_SERVICE_CONTROL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR_INVALID_SERVICE_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w21, [x8]
	b	LBB0_9
LBB0_7:
Lloh14:
	adrp	x8, _SERVICE_STOP_PENDING@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SERVICE_STOP_PENDING@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x20]
LBB0_8:
	mov	x0, x20
	mov	x1, x19
	bl	_ScmGetDriverStatus
	mov	x21, x0
LBB0_9:
	str	x21, [sp]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINT
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ScmControlDriver() called\n"

	.comm	_ERROR_SUCCESS,4,2              ; @ERROR_SUCCESS
	.comm	_SERVICE_RUNNING,4,2            ; @SERVICE_RUNNING
	.comm	_ERROR_INVALID_SERVICE_CONTROL,4,2 ; @ERROR_INVALID_SERVICE_CONTROL
	.comm	_SERVICE_STOP_PENDING,4,2       ; @SERVICE_STOP_PENDING
l_.str.1:                               ; @.str.1
	.asciz	"ScmControlDriver() done (Erorr: %lu)\n"

.subsections_via_symbols
