	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adv748x_afe_s_stream
_adv748x_afe_s_stream:                  ## @adv748x_afe_s_stream
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	callq	_adv748x_sd_to_afe
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_adv748x_afe_to_state
	movq	%rax, %r14
	movq	_V4L2_IN_ST_NO_SIGNAL@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	%rax, -48(%rbp)
	movq	%r14, %rdi
	callq	_mutex_lock
	testl	%r15d, %r15d
	je	LBB0_2
## %bb.1:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	_adv748x_afe_s_input
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
LBB0_2:
	movl	4(%r12), %edi
	movl	%r15d, %esi
	callq	_adv748x_tx_power
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	%r15d, (%r12)
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_adv748x_afe_status
	movq	-48(%rbp), %rax
	cmpq	(%r13), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rsi
	cmoveq	%rax, %rsi
	movq	%r14, %rdi
	callq	_adv_dbg
LBB0_4:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,8,3       ## @V4L2_IN_ST_NO_SIGNAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected SDP signal\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't detect SDP video signal\n"

	.no_dead_strip	_adv748x_afe_s_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adv748x_afe_s_stream
_adv748x_afe_s_stream:                  ; @adv748x_afe_s_stream
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	bl	_adv748x_sd_to_afe
	mov	x21, x0
	bl	_adv748x_afe_to_state
	mov	x19, x0
Lloh0:
	adrp	x23, _V4L2_IN_ST_NO_SIGNAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _V4L2_IN_ST_NO_SIGNAL@GOTPAGEOFF]
	ldr	x8, [x23]
	str	x8, [sp, #8]
	bl	_mutex_lock
	cbz	w20, LBB0_2
; %bb.1:
	ldr	w1, [x21, #8]
	mov	x0, x21
	bl	_adv748x_afe_s_input
	mov	x22, x0
	cbnz	w0, LBB0_4
LBB0_2:
	ldr	w0, [x21, #4]
	mov	x1, x20
	bl	_adv748x_tx_power
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.3:
	str	w20, [x21]
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, #0
	bl	_adv748x_afe_status
	ldr	x8, [sp, #8]
	ldr	x9, [x23]
Lloh2:
	adrp	x10, l_.str@PAGE
Lloh3:
	add	x10, x10, l_.str@PAGEOFF
Lloh4:
	adrp	x11, l_.str.1@PAGE
Lloh5:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x1, x11, x10, eq
	mov	x0, x19
	bl	_adv_dbg
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_IN_ST_NO_SIGNAL,8,3       ; @V4L2_IN_ST_NO_SIGNAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected SDP signal\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't detect SDP video signal\n"

	.no_dead_strip	_adv748x_afe_s_stream
.subsections_via_symbols
