	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pb0100_stop
_pb0100_stop:                           ## @pb0100_stop
	.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
	movq	_PB_ABORTFRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_stv06xx_write_sensor
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_PB_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	$5, %edi
	callq	_BIT
	movl	%eax, %ebx
	movl	$3, %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_stv06xx_write_sensor
	movl	%eax, %ebx
	movq	_D_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
	jmp	LBB0_3
LBB0_1:
	movl	%eax, %ebx
LBB0_3:
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PB_ABORTFRAME,4,2              ## @PB_ABORTFRAME
	.comm	_PB_CONTROL,4,2                 ## @PB_CONTROL
	.comm	_D_STREAM,4,2                   ## @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Halting stream"

	.no_dead_strip	_pb0100_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pb0100_stop
_pb0100_stop:                           ; @pb0100_stop
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _PB_ABORTFRAME@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PB_ABORTFRAME@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_stv06xx_write_sensor
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PB_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PB_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	w0, #5
	bl	_BIT
	mov	x21, x0
	mov	w0, #3
	bl	_BIT
	orr	w2, w0, w21
	mov	x0, x19
	mov	x1, x20
	bl	_stv06xx_write_sensor
	mov	x20, x0
Lloh6:
	adrp	x8, _D_STREAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D_STREAM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	b	LBB0_3
LBB0_2:
	mov	x20, x0
LBB0_3:
	cmp	w20, #0
	csel	w0, w20, wzr, lt
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PB_ABORTFRAME,4,2              ; @PB_ABORTFRAME
	.comm	_PB_CONTROL,4,2                 ; @PB_CONTROL
	.comm	_D_STREAM,4,2                   ; @D_STREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Halting stream"

	.no_dead_strip	_pb0100_stop
.subsections_via_symbols
