	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hackrf_s_frequency
_hackrf_s_frequency:                    ## @hackrf_s_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, %r12
	movq	24(%rax), %r14
	movq	%rbx, %rdi
	callq	_video_devdata
	movq	%rax, %r15
	movl	8(%r13), %ecx
	movl	(%r13), %edx
	movl	4(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %eax
	cmpl	$1, %eax
	je	LBB0_4
## %bb.1:
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movl	4(%r13), %edi
	movq	_bands_adc_dac@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_clamp
	movq	(%r15), %rcx
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.3:
	movl	%eax, (%r12)
	movq	_RX_ADC_FREQUENCY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	4(%r13), %edi
	movq	_bands_rx_tx@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %edx
	movl	4(%rax), %esi
	callq	_clamp
	movq	(%r15), %rcx
	movq	_VFL_DIR_RX@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.5:
	movl	%eax, 8(%r12)
	movq	_RX_RF_FREQUENCY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_7:
	movl	%eax, 4(%r12)
	movq	_TX_DAC_FREQUENCY@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movl	%eax, 12(%r12)
	movq	_TX_RF_FREQUENCY@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %edi
	movq	%r12, %rsi
	addq	$16, %rsi
	callq	_set_bit
	movq	%r12, %rdi
	callq	_hackrf_set_params
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_12
LBB0_9:
	xorl	%ebx, %ebx
LBB0_12:
	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 frequency=%u\n"

	.comm	_bands_adc_dac,8,3              ## @bands_adc_dac
	.comm	_VFL_DIR_RX,8,3                 ## @VFL_DIR_RX
	.comm	_RX_ADC_FREQUENCY,4,2           ## @RX_ADC_FREQUENCY
	.comm	_TX_DAC_FREQUENCY,4,2           ## @TX_DAC_FREQUENCY
	.comm	_bands_rx_tx,8,3                ## @bands_rx_tx
	.comm	_RX_RF_FREQUENCY,4,2            ## @RX_RF_FREQUENCY
	.comm	_TX_RF_FREQUENCY,4,2            ## @TX_RF_FREQUENCY
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_hackrf_s_frequency
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hackrf_s_frequency
_hackrf_s_frequency:                    ; @hackrf_s_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	x22, x2
	mov	x21, x0
	bl	_video_drvdata
	mov	x20, x0
	ldr	x19, [x0, #24]
	mov	x0, x21
	bl	_video_devdata
	mov	x21, x0
	ldp	w9, w8, [x22, #4]
	ldr	w2, [x22]
	stp	x8, x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x22]
	cmp	w8, #1
	b.eq	LBB0_4
; %bb.1:
	cbnz	w8, LBB0_6
; %bb.2:
	ldr	w0, [x22, #4]
Lloh2:
	adrp	x8, _bands_adc_dac@GOTPAGE
Lloh3:
	ldr	x8, [x8, _bands_adc_dac@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	bl	_clamp
	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:
	str	w0, [x20]
Lloh8:
	adrp	x8, _RX_ADC_FREQUENCY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RX_ADC_FREQUENCY@GOTPAGEOFF]
	b	LBB0_9
LBB0_4:
	ldr	w0, [x22, #4]
Lloh10:
	adrp	x8, _bands_rx_tx@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bands_rx_tx@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldp	w2, w1, [x8]
	bl	_clamp
	ldr	x8, [x21]
Lloh13:
	adrp	x9, _VFL_DIR_RX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _VFL_DIR_RX@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	str	w0, [x20, #8]
Lloh16:
	adrp	x8, _RX_RF_FREQUENCY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RX_RF_FREQUENCY@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_10
LBB0_7:
	str	w0, [x20, #4]
Lloh21:
	adrp	x8, _TX_DAC_FREQUENCY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TX_DAC_FREQUENCY@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	str	w0, [x20, #12]
Lloh23:
	adrp	x8, _TX_RF_FREQUENCY@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TX_RF_FREQUENCY@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	add	x1, x20, #16
	bl	_set_bit
	mov	x0, x20
	bl	_hackrf_set_params
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_10:
Lloh25:
	adrp	x1, l_.str.1@PAGE
Lloh26:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
LBB0_11:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tuner=%d type=%d frequency=%u\n"

	.comm	_bands_adc_dac,8,3              ; @bands_adc_dac
	.comm	_VFL_DIR_RX,8,3                 ; @VFL_DIR_RX
	.comm	_RX_ADC_FREQUENCY,4,2           ; @RX_ADC_FREQUENCY
	.comm	_TX_DAC_FREQUENCY,4,2           ; @TX_DAC_FREQUENCY
	.comm	_bands_rx_tx,8,3                ; @bands_rx_tx
	.comm	_RX_RF_FREQUENCY,4,2            ; @RX_RF_FREQUENCY
	.comm	_TX_RF_FREQUENCY,4,2            ; @TX_RF_FREQUENCY
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_hackrf_s_frequency
.subsections_via_symbols
