	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm_v4l2_vidioc_s_hw_freq_seek
_fm_v4l2_vidioc_s_hw_freq_seek:         ## @fm_v4l2_vidioc_s_hw_freq_seek
	.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	%rdx, %r14
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r15
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_EWOULDBLOCK@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_2:
	movq	_FM_MODE_RX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, (%r15)
	je	LBB0_5
## %bb.3:
	movq	%r15, %rdi
	callq	_fmc_set_mode
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_fmerr
	jmp	LBB0_7
LBB0_5:
	movl	8(%r14), %esi
	movl	(%r14), %ecx
	movl	4(%r14), %edx
	movq	%r15, %rdi
	callq	_fm_rx_seek
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_fmerr
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_EWOULDBLOCK,4,2                ## @EWOULDBLOCK
	.comm	_FM_MODE_RX,8,3                 ## @FM_MODE_RX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to set RX mode\n"

L_.str.1:                               ## @.str.1
	.asciz	"RX seek failed - %d\n"

	.no_dead_strip	_fm_v4l2_vidioc_s_hw_freq_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm_v4l2_vidioc_s_hw_freq_seek
_fm_v4l2_vidioc_s_hw_freq_seek:         ; @fm_v4l2_vidioc_s_hw_freq_seek
	.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, x2
	mov	x20, x0
	bl	_video_drvdata
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EWOULDBLOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EWOULDBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_2:
	mov	x21, x0
	ldr	x8, [x0]
Lloh6:
	adrp	x9, _FM_MODE_RX@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FM_MODE_RX@GOTPAGEOFF]
Lloh8:
	ldr	x1, [x9]
	cmp	x8, x1
	b.eq	LBB0_5
; %bb.3:
	mov	x0, x21
	bl	_fmc_set_mode
	cbz	w0, LBB0_5
; %bb.4:
	mov	x20, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	mov	x0, x21
	bl	_fm_rx_seek
	mov	x20, x0
	tbz	w0, #31, LBB0_8
; %bb.6:
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_fmerr
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_EWOULDBLOCK,4,2                ; @EWOULDBLOCK
	.comm	_FM_MODE_RX,8,3                 ; @FM_MODE_RX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set RX mode\n"

l_.str.1:                               ; @.str.1
	.asciz	"RX seek failed - %d\n"

	.no_dead_strip	_fm_v4l2_vidioc_s_hw_freq_seek
.subsections_via_symbols
