	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gs_g_input_status
_gs_g_input_status:                     ## @gs_g_input_status
	.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	%rsi, %r14
	callq	_to_gs
	movq	%rax, %rbx
	movl	(%rax), %edi
	movq	_REG_LINES_PER_FRAME@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	leaq	-28(%rbp), %rdx
	callq	_gs_read_register
	cmpl	$0, -28(%rbp)
	je	LBB0_1
LBB0_9:
	movl	(%rbx), %edi
	movq	_REG_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-28(%rbp), %rdx
	callq	_gs_read_register
	movl	-28(%rbp), %ecx
	movq	_MASK_H_LOCK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_11
## %bb.10:
	movq	_V4L2_IN_ST_NO_H_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%r14)
LBB0_11:
	movq	_MASK_V_LOCK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_13
## %bb.12:
	movq	_V4L2_IN_ST_NO_V_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, (%r14)
LBB0_13:
	movq	_MASK_STD_LOCK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_16
## %bb.14:
	movq	_V4L2_IN_ST_NO_STD_LOCK@GOTPCREL(%rip), %rdx
	movl	(%r14), %ecx
	orl	(%rdx), %ecx
	jmp	LBB0_15
LBB0_1:
	testl	%eax, %eax
	je	LBB0_2
LBB0_17:
	movq	_V4L2_IN_ST_NO_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_15:
	movl	%ecx, (%r14)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	incq	%rsi
	leaq	-28(%rbp), %rdx
	callq	_gs_read_register
	cmpl	$0, -28(%rbp)
	jne	LBB0_9
## %bb.3:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.4:
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$2, %rsi
	leaq	-28(%rbp), %rdx
	callq	_gs_read_register
	cmpl	$0, -28(%rbp)
	jne	LBB0_9
## %bb.5:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.6:
	movl	(%rbx), %edi
	movq	(%r15), %rsi
	addq	$3, %rsi
	leaq	-28(%rbp), %rdx
	callq	_gs_read_register
	cmpl	$0, -28(%rbp)
	jne	LBB0_9
## %bb.7:
	testl	%eax, %eax
	jne	LBB0_17
## %bb.8:
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_LINES_PER_FRAME,8,3        ## @REG_LINES_PER_FRAME
	.comm	_V4L2_IN_ST_NO_POWER,4,2        ## @V4L2_IN_ST_NO_POWER
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ## @V4L2_IN_ST_NO_SIGNAL
	.comm	_REG_STATUS,8,3                 ## @REG_STATUS
	.comm	_MASK_H_LOCK,4,2                ## @MASK_H_LOCK
	.comm	_V4L2_IN_ST_NO_H_LOCK,4,2       ## @V4L2_IN_ST_NO_H_LOCK
	.comm	_MASK_V_LOCK,4,2                ## @MASK_V_LOCK
	.comm	_V4L2_IN_ST_NO_V_LOCK,4,2       ## @V4L2_IN_ST_NO_V_LOCK
	.comm	_MASK_STD_LOCK,4,2              ## @MASK_STD_LOCK
	.comm	_V4L2_IN_ST_NO_STD_LOCK,4,2     ## @V4L2_IN_ST_NO_STD_LOCK
	.no_dead_strip	_gs_g_input_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gs_g_input_status
_gs_g_input_status:                     ; @gs_g_input_status
	.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, x1
	bl	_to_gs
	mov	x20, x0
	ldr	w0, [x0]
Lloh0:
	adrp	x21, _REG_LINES_PER_FRAME@GOTPAGE
Lloh1:
	ldr	x21, [x21, _REG_LINES_PER_FRAME@GOTPAGEOFF]
	ldr	x1, [x21]
	add	x2, sp, #12
	bl	_gs_read_register
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
LBB0_1:
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _REG_STATUS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	add	x2, sp, #12
	bl	_gs_read_register
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _MASK_H_LOCK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MASK_H_LOCK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _V4L2_IN_ST_NO_H_LOCK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _V4L2_IN_ST_NO_H_LOCK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_3:
Lloh11:
	adrp	x9, _MASK_V_LOCK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _MASK_V_LOCK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
Lloh14:
	adrp	x9, _V4L2_IN_ST_NO_V_LOCK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _V4L2_IN_ST_NO_V_LOCK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
LBB0_5:
Lloh17:
	adrp	x9, _MASK_STD_LOCK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MASK_STD_LOCK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.6:
Lloh20:
	adrp	x8, _V4L2_IN_ST_NO_STD_LOCK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _V4L2_IN_ST_NO_STD_LOCK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	b	LBB0_9
LBB0_7:
	cbz	w0, LBB0_11
LBB0_8:
Lloh23:
	adrp	x8, _V4L2_IN_ST_NO_POWER@GOTPAGE
Lloh24:
	ldr	x8, [x8, _V4L2_IN_ST_NO_POWER@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
LBB0_9:
	str	w8, [x19]
LBB0_10:
	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
LBB0_11:
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x1, x8, #1
	add	x2, sp, #12
	bl	_gs_read_register
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_1
; %bb.12:
	cbnz	w0, LBB0_8
; %bb.13:
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x1, x8, #2
	add	x2, sp, #12
	bl	_gs_read_register
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_1
; %bb.14:
	cbnz	w0, LBB0_8
; %bb.15:
	ldr	w0, [x20]
	ldr	x8, [x21]
	add	x1, x8, #3
	add	x2, sp, #12
	bl	_gs_read_register
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_1
; %bb.16:
	cbnz	w0, LBB0_8
; %bb.17:
Lloh26:
	adrp	x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_LINES_PER_FRAME,8,3        ; @REG_LINES_PER_FRAME
	.comm	_V4L2_IN_ST_NO_POWER,4,2        ; @V4L2_IN_ST_NO_POWER
	.comm	_V4L2_IN_ST_NO_SIGNAL,4,2       ; @V4L2_IN_ST_NO_SIGNAL
	.comm	_REG_STATUS,8,3                 ; @REG_STATUS
	.comm	_MASK_H_LOCK,4,2                ; @MASK_H_LOCK
	.comm	_V4L2_IN_ST_NO_H_LOCK,4,2       ; @V4L2_IN_ST_NO_H_LOCK
	.comm	_MASK_V_LOCK,4,2                ; @MASK_V_LOCK
	.comm	_V4L2_IN_ST_NO_V_LOCK,4,2       ; @V4L2_IN_ST_NO_V_LOCK
	.comm	_MASK_STD_LOCK,4,2              ; @MASK_STD_LOCK
	.comm	_V4L2_IN_ST_NO_STD_LOCK,4,2     ; @V4L2_IN_ST_NO_STD_LOCK
	.no_dead_strip	_gs_g_input_status
.subsections_via_symbols
