	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_tx_set_preemph_filter       ## -- Begin function fm_tx_set_preemph_filter
	.p2align	4, 0x90
_fm_tx_set_preemph_filter:              ## @fm_tx_set_preemph_filter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	_FM_MODE_TX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	cmpl	$130, %esi
	je	LBB0_6
## %bb.3:
	cmpl	$129, %esi
	je	LBB0_7
## %bb.4:
	cmpl	$128, %esi
	jne	LBB0_9
## %bb.5:
	movq	_FM_TX_PREEMPH_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_6:
	movq	_FM_TX_PREEMPH_50US@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_FM_TX_PREEMPH_75US@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -12(%rbp)
LBB0_9:
	movq	_PREMPH_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	leaq	-12(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:
	movl	-12(%rbp), %ecx
	movl	%ecx, 8(%rbx)
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_MODE_TX,8,3                 ## @FM_MODE_TX
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_FM_TX_PREEMPH_OFF,4,2          ## @FM_TX_PREEMPH_OFF
	.comm	_FM_TX_PREEMPH_50US,4,2         ## @FM_TX_PREEMPH_50US
	.comm	_FM_TX_PREEMPH_75US,4,2         ## @FM_TX_PREEMPH_75US
	.comm	_PREMPH_SET,4,2                 ## @PREMPH_SET
	.comm	_REG_WR,4,2                     ## @REG_WR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_tx_set_preemph_filter       ; -- Begin function fm_tx_set_preemph_filter
	.p2align	2
_fm_tx_set_preemph_filter:              ; @fm_tx_set_preemph_filter
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _FM_MODE_TX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM_MODE_TX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	mov	x19, x0
	cmp	w1, #130
	b.eq	LBB0_6
; %bb.2:
	cmp	w1, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w1, #128
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _FM_TX_PREEMPH_OFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM_TX_PREEMPH_OFF@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh5:
	adrp	x8, _EPERM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_6:
Lloh8:
	adrp	x8, _FM_TX_PREEMPH_50US@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FM_TX_PREEMPH_50US@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh10:
	adrp	x8, _FM_TX_PREEMPH_75US@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FM_TX_PREEMPH_75US@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_9:
Lloh12:
	adrp	x8, _PREMPH_SET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PREMPH_SET@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _REG_WR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_WR@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_11
; %bb.10:
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_MODE_TX,8,3                 ; @FM_MODE_TX
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_FM_TX_PREEMPH_OFF,4,2          ; @FM_TX_PREEMPH_OFF
	.comm	_FM_TX_PREEMPH_50US,4,2         ; @FM_TX_PREEMPH_50US
	.comm	_FM_TX_PREEMPH_75US,4,2         ; @FM_TX_PREEMPH_75US
	.comm	_PREMPH_SET,4,2                 ; @PREMPH_SET
	.comm	_REG_WR,4,2                     ; @REG_WR
.subsections_via_symbols
