	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hackrf_g_frequency
_hackrf_g_frequency:                    ## @hackrf_g_frequency
	.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	%rdx, %r13
	movq	%rdi, %rbx
	callq	_video_drvdata
	movq	%rax, %r14
	movq	24(%rax), %r15
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%rax, %r12
	movslq	16(%r14), %rdi
	movl	(%r13), %edx
	movl	8(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_6
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:
	movq	_V4L2_TUNER_SDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	(%r12), %rax
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movl	12(%r14), %eax
	jmp	LBB0_4
LBB0_6:
	movq	_V4L2_TUNER_RF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r13)
	movq	(%r12), %rax
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movl	4(%r14), %eax
	jmp	LBB0_4
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_10
LBB0_5:
	movl	8(%r14), %eax
	jmp	LBB0_4
LBB0_8:
	movl	(%r14), %eax
LBB0_4:
	movl	%eax, 4(%r13)
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tuner=%d type=%d\n"

	.comm	_V4L2_TUNER_SDR,4,2             ## @V4L2_TUNER_SDR
	.comm	_VFL_DIR_RX,8,3                 ## @VFL_DIR_RX
	.comm	_V4L2_TUNER_RF,4,2              ## @V4L2_TUNER_RF
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_hackrf_g_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hackrf_g_frequency
_hackrf_g_frequency:                    ; @hackrf_g_frequency
	.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	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	x22, [x0, #24]
	mov	x0, x21
	bl	_video_devdata
	mov	x21, x0
	ldrsw	x0, [x20, #16]
	ldr	w2, [x19]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x19]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _V4L2_TUNER_SDR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V4L2_TUNER_SDR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x21]
Lloh5:
	adrp	x9, _VFL_DIR_RX@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VFL_DIR_RX@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	mov	w21, #0
	ldr	w8, [x20, #12]
	b	LBB0_9
LBB0_4:
Lloh8:
	adrp	x8, _V4L2_TUNER_RF@GOTPAGE
Lloh9:
	ldr	x8, [x8, _V4L2_TUNER_RF@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _VFL_DIR_RX@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VFL_DIR_RX@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	w21, #0
	ldr	w8, [x20, #4]
	b	LBB0_9
LBB0_6:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	bl	_dev_dbg
	b	LBB0_10
LBB0_7:
	mov	w21, #0
	ldr	w8, [x20, #8]
	b	LBB0_9
LBB0_8:
	mov	w21, #0
	ldr	w8, [x20]
LBB0_9:
	str	w8, [x19, #4]
LBB0_10:
	mov	x0, x21
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner=%d type=%d\n"

	.comm	_V4L2_TUNER_SDR,4,2             ; @V4L2_TUNER_SDR
	.comm	_VFL_DIR_RX,8,3                 ; @VFL_DIR_RX
	.comm	_V4L2_TUNER_RF,4,2              ; @V4L2_TUNER_RF
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_hackrf_g_frequency
.subsections_via_symbols
