	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvb_frontend_check_parameters
_dvb_frontend_check_parameters:         ## @dvb_frontend_check_parameters
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	xorl	%ecx, %ecx
	callq	_dvb_frontend_get_frequency_limits
	movq	-24(%rbp), %r9
	testq	%r9, %r9
	je	LBB0_3
## %bb.1:
	movq	32(%rbx), %r8
	cmpq	%r9, %r8
	jge	LBB0_3
## %bb.2:
	movq	-16(%rbp), %rax
	jmp	LBB0_5
LBB0_3:
	movq	-16(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	32(%rbx), %r8
	cmpq	%rax, %r8
	jle	LBB0_6
LBB0_5:
	movq	24(%rbx), %rcx
	movl	(%rcx), %edx
	movl	4(%rcx), %edi
	movl	16(%rbx), %ecx
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
LBB0_13:
	callq	_dev_warn
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_6:
	movl	40(%rbx), %ecx
	addl	$-128, %ecx
	xorl	%eax, %eax
	cmpl	$4, %ecx
	ja	LBB0_14
## %bb.7:
	movq	(%rbx), %r9
	testq	%r9, %r9
	je	LBB0_10
## %bb.8:
	movq	48(%rbx), %r8
	cmpq	%r9, %r8
	jge	LBB0_10
## %bb.9:
	movq	8(%rbx), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.11:
	movq	48(%rbx), %r8
	cmpq	%rsi, %r8
	jle	LBB0_14
LBB0_12:
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movl	4(%rax), %edi
	movl	16(%rbx), %ecx
	movq	%rsi, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DVB: adapter %i frontend %i frequency %u out of range (%u..%u)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"DVB: adapter %i frontend %i symbol rate %u out of range (%u..%u)\n"

	.no_dead_strip	_dvb_frontend_check_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvb_frontend_check_parameters
_dvb_frontend_check_parameters:         ; @dvb_frontend_check_parameters
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	add	x1, sp, #8
	mov	x2, sp
	mov	x3, #0
	bl	_dvb_frontend_get_frequency_limits
	ldr	x5, [sp, #8]
	cbz	x5, LBB0_3
; %bb.1:
	ldr	x4, [x19, #32]
	cmp	x4, x5
	b.ge	LBB0_3
; %bb.2:
	ldr	x6, [sp]
	b	LBB0_5
LBB0_3:
	ldr	x6, [sp]
	cbz	x6, LBB0_7
; %bb.4:
	ldr	x4, [x19, #32]
	cmp	x4, x6
	b.le	LBB0_7
LBB0_5:
	ldr	x8, [x19, #24]
	ldp	w2, w0, [x8]
	ldr	w3, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	bl	_dev_warn
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_7:
	ldr	w8, [x19, #40]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.8:
	ldr	x5, [x19]
	cbz	x5, LBB0_11
; %bb.9:
	ldr	x4, [x19, #48]
	cmp	x4, x5
	b.ge	LBB0_11
; %bb.10:
	ldr	x6, [x19, #8]
	b	LBB0_13
LBB0_11:
	ldr	x6, [x19, #8]
	cbz	x6, LBB0_14
; %bb.12:
	ldr	x4, [x19, #48]
	cmp	x4, x6
	b.le	LBB0_14
LBB0_13:
	ldr	x8, [x19, #24]
	ldp	w2, w0, [x8]
	ldr	w3, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DVB: adapter %i frontend %i frequency %u out of range (%u..%u)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"DVB: adapter %i frontend %i symbol rate %u out of range (%u..%u)\n"

	.no_dead_strip	_dvb_frontend_check_parameters
.subsections_via_symbols
