	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cxd2880_read_snr
_cxd2880_read_snr:                      ## @cxd2880_read_snr
	.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	$0, -28(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movl	(%r15), %edi
	callq	_mutex_lock
	movq	(%rbx), %rax
	movq	_SYS_DVBT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	leaq	4(%r15), %rdi
	leaq	-28(%rbp), %rsi
	callq	_cxd2880_tnrdmd_dvbt_mon_snr
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.7:
	leaq	4(%r15), %rdi
	leaq	-28(%rbp), %rsi
	callq	_cxd2880_tnrdmd_dvbt2_mon_snr
LBB0_8:
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_mutex_unlock
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jns	LBB0_10
## %bb.9:
	movl	$0, -28(%rbp)
	xorl	%eax, %eax
LBB0_10:
	movl	%eax, (%r14)
	testl	%ebx, %ebx
	je	LBB0_11
## %bb.12:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_debug
	jmp	LBB0_13
LBB0_11:
	xorl	%ebx, %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	(%r15), %edi
	callq	_mutex_unlock
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SYS_DVBT,8,3                   ## @SYS_DVBT
	.comm	_SYS_DVBT2,8,3                  ## @SYS_DVBT2
L_.str.1:                               ## @.str.1
	.asciz	"invalid system\n"

L_.str.2:                               ## @.str.2
	.asciz	"ret = %d\n"

	.no_dead_strip	_cxd2880_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cxd2880_read_snr
_cxd2880_read_snr:                      ; @cxd2880_read_snr
	.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
	str	wzr, [sp, #12]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_4
; %bb.2:
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	w0, [x21]
	bl	_mutex_lock
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SYS_DVBT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SYS_DVBT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.3:
	add	x0, x21, #4
	add	x1, sp, #12
	bl	_cxd2880_tnrdmd_dvbt_mon_snr
	b	LBB0_8
LBB0_4:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_5:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_6:
Lloh8:
	adrp	x9, _SYS_DVBT2@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SYS_DVBT2@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.7:
	add	x0, x21, #4
	add	x1, sp, #12
	bl	_cxd2880_tnrdmd_dvbt2_mon_snr
LBB0_8:
	mov	x20, x0
	ldr	w0, [x21]
	bl	_mutex_unlock
	ldr	w8, [sp, #12]
	tbz	w8, #31, LBB0_10
; %bb.9:
	mov	w8, #0
	str	wzr, [sp, #12]
LBB0_10:
	str	w8, [x19]
	cbz	w20, LBB0_12
; %bb.11:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_pr_debug
LBB0_12:
	mov	x0, x20
	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_13:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	ldr	w0, [x21]
	bl	_mutex_unlock
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid arg\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SYS_DVBT,8,3                   ; @SYS_DVBT
	.comm	_SYS_DVBT2,8,3                  ; @SYS_DVBT2
l_.str.1:                               ; @.str.1
	.asciz	"invalid system\n"

l_.str.2:                               ; @.str.2
	.asciz	"ret = %d\n"

	.no_dead_strip	_cxd2880_read_snr
.subsections_via_symbols
