	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_shutdown
_do_shutdown:                           ## @do_shutdown
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_gigaset_block_channels
	movq	(%rbx), %rax
	movq	_MS_READY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_MS_SHUTDOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_PC_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%rbx)
	movl	$1, 8(%rbx)
	movq	_DEBUG_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gig_dbg                        ## TAILCALL
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_finish_shutdown                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MS_READY,8,3                   ## @MS_READY
	.comm	_MS_SHUTDOWN,8,3                ## @MS_SHUTDOWN
	.comm	_PC_SHUTDOWN,4,2                ## @PC_SHUTDOWN
	.comm	_DEBUG_CMD,4,2                  ## @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Scheduling PC_SHUTDOWN"

	.no_dead_strip	_do_shutdown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_shutdown
_do_shutdown:                           ; @do_shutdown
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_gigaset_block_channels
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MS_READY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MS_READY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _MS_SHUTDOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MS_SHUTDOWN@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19]
Lloh6:
	adrp	x8, _PC_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PC_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	mov	w9, #1
Lloh9:
	adrp	x10, _DEBUG_CMD@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DEBUG_CMD@GOTPAGEOFF]
	stp	w9, w8, [x19, #8]
Lloh11:
	ldr	w0, [x10]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gig_dbg
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_finish_shutdown
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MS_READY,8,3                   ; @MS_READY
	.comm	_MS_SHUTDOWN,8,3                ; @MS_SHUTDOWN
	.comm	_PC_SHUTDOWN,4,2                ; @PC_SHUTDOWN
	.comm	_DEBUG_CMD,4,2                  ; @DEBUG_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Scheduling PC_SHUTDOWN"

	.no_dead_strip	_do_shutdown
.subsections_via_symbols
