	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemtek_setfreq
_gemtek_setfreq:                        ## @gemtek_setfreq
	.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	%rdi, %rbx
	movq	_keepmuted@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.1:
	movq	_hardmute@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 8(%rbx)
	je	LBB0_4
## %bb.3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_GEMTEK_LOWFREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_GEMTEK_HIGHFREQ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	_clamp_val
	movq	%rax, %r14
	movq	%rax, (%rbx)
	movq	$0, 8(%rbx)
	movq	_BU2614_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gemtek_bu2614_set
	movq	_BU2614_FMES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gemtek_bu2614_set
	movq	_BU2614_SWIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gemtek_bu2614_set
	movq	_BU2614_SWAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gemtek_bu2614_set
	movq	_BU2614_FMUN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_gemtek_bu2614_set
	movq	_BU2614_TEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gemtek_bu2614_set
	movq	_BU2614_STDF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GEMTEK_STDF_3_125_KHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_gemtek_bu2614_set
	movq	_BU2614_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_gemtek_convfreq
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_gemtek_bu2614_set
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gemtek_bu2614_transmit         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_keepmuted,8,3                  ## @keepmuted
	.comm	_hardmute,8,3                   ## @hardmute
	.comm	_GEMTEK_LOWFREQ,4,2             ## @GEMTEK_LOWFREQ
	.comm	_GEMTEK_HIGHFREQ,4,2            ## @GEMTEK_HIGHFREQ
	.comm	_BU2614_PORT,4,2                ## @BU2614_PORT
	.comm	_BU2614_FMES,4,2                ## @BU2614_FMES
	.comm	_BU2614_SWIN,4,2                ## @BU2614_SWIN
	.comm	_BU2614_SWAL,4,2                ## @BU2614_SWAL
	.comm	_BU2614_FMUN,4,2                ## @BU2614_FMUN
	.comm	_BU2614_TEST,4,2                ## @BU2614_TEST
	.comm	_BU2614_STDF,4,2                ## @BU2614_STDF
	.comm	_GEMTEK_STDF_3_125_KHZ,4,2      ## @GEMTEK_STDF_3_125_KHZ
	.comm	_BU2614_FREQ,4,2                ## @BU2614_FREQ
	.no_dead_strip	_gemtek_setfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemtek_setfreq
_gemtek_setfreq:                        ; @gemtek_setfreq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x8, _keepmuted@GOTPAGE
Lloh1:
	ldr	x8, [x8, _keepmuted@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _hardmute@GOTPAGE
Lloh4:
	ldr	x9, [x9, _hardmute@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x8, _GEMTEK_LOWFREQ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GEMTEK_LOWFREQ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GEMTEK_HIGHFREQ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GEMTEK_HIGHFREQ@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
	mov	x0, x1
	mov	x1, x8
	bl	_clamp_val
	mov	x20, x0
	stp	x0, xzr, [x19]
Lloh12:
	adrp	x8, _BU2614_PORT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BU2614_PORT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gemtek_bu2614_set
Lloh15:
	adrp	x8, _BU2614_FMES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BU2614_FMES@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gemtek_bu2614_set
Lloh18:
	adrp	x8, _BU2614_SWIN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BU2614_SWIN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gemtek_bu2614_set
Lloh21:
	adrp	x8, _BU2614_SWAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BU2614_SWAL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gemtek_bu2614_set
Lloh24:
	adrp	x8, _BU2614_FMUN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BU2614_FMUN@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_gemtek_bu2614_set
Lloh27:
	adrp	x8, _BU2614_TEST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BU2614_TEST@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_gemtek_bu2614_set
Lloh30:
	adrp	x8, _BU2614_STDF@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BU2614_STDF@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
Lloh33:
	adrp	x8, _GEMTEK_STDF_3_125_KHZ@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GEMTEK_STDF_3_125_KHZ@GOTPAGEOFF]
Lloh35:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_gemtek_bu2614_set
Lloh36:
	adrp	x8, _BU2614_FREQ@GOTPAGE
Lloh37:
	ldr	x8, [x8, _BU2614_FREQ@GOTPAGEOFF]
Lloh38:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_gemtek_convfreq
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_gemtek_bu2614_set
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_gemtek_bu2614_transmit
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_keepmuted,8,3                  ; @keepmuted
	.comm	_hardmute,8,3                   ; @hardmute
	.comm	_GEMTEK_LOWFREQ,4,2             ; @GEMTEK_LOWFREQ
	.comm	_GEMTEK_HIGHFREQ,4,2            ; @GEMTEK_HIGHFREQ
	.comm	_BU2614_PORT,4,2                ; @BU2614_PORT
	.comm	_BU2614_FMES,4,2                ; @BU2614_FMES
	.comm	_BU2614_SWIN,4,2                ; @BU2614_SWIN
	.comm	_BU2614_SWAL,4,2                ; @BU2614_SWAL
	.comm	_BU2614_FMUN,4,2                ; @BU2614_FMUN
	.comm	_BU2614_TEST,4,2                ; @BU2614_TEST
	.comm	_BU2614_STDF,4,2                ; @BU2614_STDF
	.comm	_GEMTEK_STDF_3_125_KHZ,4,2      ; @GEMTEK_STDF_3_125_KHZ
	.comm	_BU2614_FREQ,4,2                ; @BU2614_FREQ
	.no_dead_strip	_gemtek_setfreq
.subsections_via_symbols
