	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poseidon_set_fe
_poseidon_set_fe:                       ## @poseidon_set_fe
	.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
	movq	%rsi, %r14
	movq	$0, -48(%rbp)
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_in_hibernation
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_2:
	leaq	8(%r15), %r12
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_dvb_bandwidth_length@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movq	_dvb_bandwidth@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	$1, %rcx
	jne	LBB0_6
## %bb.5:
	movq	$-1, %r13
	xorl	%esi, %esi
LBB0_12:
	testb	$1, %cl
	je	LBB0_15
## %bb.13:
	movq	(%rdx,%rsi,8), %rcx
	cmpq	8(%rcx), %rax
	jne	LBB0_15
## %bb.14:
	movq	(%rcx), %r13
	jmp	LBB0_15
LBB0_3:
	movq	$-1, %r13
LBB0_15:
	movl	(%r14), %edi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_check_scan_ok
	testq	%rax, %rax
	je	LBB0_16
## %bb.17:
	movq	_TUNE_FREQ_SELECT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	(%r14), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movslq	%eax, %rdx
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	callq	_send_set_req
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	orq	%rbx, %rax
	jne	LBB0_18
## %bb.19:
	movq	_DVBT_BANDW_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_send_set_req
	movq	%rax, %rbx
	movq	-48(%rbp), %rax
	orq	%rbx, %rax
	jne	LBB0_18
## %bb.20:
	movq	_TAKE_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rcx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_send_set_req
	movq	%rax, %rbx
	orq	-48(%rbp), %rax
	je	LBB0_21
LBB0_18:
	leaq	L_.str(%rip), %rdi
	callq	_log
	jmp	LBB0_22
LBB0_16:
	xorl	%ebx, %ebx
LBB0_22:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rcx, %rdi
	andq	$-2, %rdi
	movq	$-1, %r13
	xorl	%esi, %esi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rbx
	cmpq	8(%rbx), %rax
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %r13
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	8(%rdx,%rsi,8), %rbx
	cmpq	8(%rbx), %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%rbx), %r13
	jmp	LBB0_11
LBB0_21:
	leaq	24(%r15), %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	%r13, 8(%r15)
	movl	(%r14), %eax
	movl	%eax, 16(%r15)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_dvb_bandwidth_length,8,3       ## @dvb_bandwidth_length
	.comm	_dvb_bandwidth,8,3              ## @dvb_bandwidth
	.comm	_TUNE_FREQ_SELECT,4,2           ## @TUNE_FREQ_SELECT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error line"

	.comm	_DVBT_BANDW_SEL,4,2             ## @DVBT_BANDW_SEL
	.comm	_TAKE_REQUEST,4,2               ## @TAKE_REQUEST
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_poseidon_set_fe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poseidon_set_fe
_poseidon_set_fe:                       ; @poseidon_set_fe
	.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	x20, x1
	str	xzr, [sp, #8]
	ldr	x19, [x0]
	mov	x0, x19
	bl	_in_hibernation
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_2:
	add	x22, x19, #8
	mov	x0, x19
	bl	_mutex_lock
Lloh3:
	adrp	x8, _dvb_bandwidth_length@GOTPAGE
Lloh4:
	ldr	x8, [x8, _dvb_bandwidth_length@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.3:
	ldr	x9, [x20, #8]
Lloh6:
	adrp	x10, _dvb_bandwidth@GOTPAGE
Lloh7:
	ldr	x10, [x10, _dvb_bandwidth@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mov	x21, #-1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x10, x10, #8
	subs	x8, x8, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	ldr	x12, [x11, #8]
	cmp	x9, x12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x21, [x11]
	b	LBB0_4
LBB0_7:
	mov	x21, #-1
LBB0_8:
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x22
	bl	_check_scan_ok
	cbz	x0, LBB0_13
; %bb.9:
Lloh9:
	adrp	x8, _TUNE_FREQ_SELECT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TUNE_FREQ_SELECT@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldrsw	x8, [x20]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x2, w8
	add	x3, sp, #8
	mov	x0, x19
	bl	_send_set_req
	ldr	x8, [sp, #8]
	orr	x8, x8, x0
	cbnz	x8, LBB0_11
; %bb.10:
Lloh12:
	adrp	x8, _DVBT_BANDW_SEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DVBT_BANDW_SEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, x21
	bl	_send_set_req
	ldr	x8, [sp, #8]
	orr	x8, x8, x0
	cbz	x8, LBB0_16
LBB0_11:
	mov	x22, x0
LBB0_12:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_log
	b	LBB0_14
LBB0_13:
	mov	x22, #0
LBB0_14:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x22
	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_16:
Lloh17:
	adrp	x8, _TAKE_REQUEST@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TAKE_REQUEST@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	add	x3, sp, #8
	mov	x0, x19
	mov	x2, #0
	bl	_send_set_req
	mov	x22, x0
	ldr	x8, [sp, #8]
	orr	x8, x8, x0
	cbnz	x8, LBB0_12
; %bb.17:
	add	x0, x19, #24
	mov	x1, x20
	mov	w2, #16
	bl	_memcpy
	str	x21, [x19, #8]
	ldr	w8, [x20]
Lloh20:
	adrp	x9, _jiffies@GOTPAGE
Lloh21:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	stp	w8, w9, [x19, #16]
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_dvb_bandwidth_length,8,3       ; @dvb_bandwidth_length
	.comm	_dvb_bandwidth,8,3              ; @dvb_bandwidth
	.comm	_TUNE_FREQ_SELECT,4,2           ; @TUNE_FREQ_SELECT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error line"

	.comm	_DVBT_BANDW_SEL,4,2             ; @DVBT_BANDW_SEL
	.comm	_TAKE_REQUEST,4,2               ; @TAKE_REQUEST
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_poseidon_set_fe
.subsections_via_symbols
