	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_set_deemphasis_mode      ## -- Begin function fm_rx_set_deemphasis_mode
	.p2align	4, 0x90
_fm_rx_set_deemphasis_mode:             ## @fm_rx_set_deemphasis_mode
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_FM_MODE_RX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_FM_RX_EMPHASIS_FILTER_50_USEC@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_FM_RX_EMPHASIS_FILTER_75_USEC@GOTPCREL(%rip), %rax
	cmpq	%r14, (%rax)
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	_fmerr
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r14, -32(%rbp)
	movq	_DEMPH_MODE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rcx
	movq	%r15, %rdi
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	%r14, 8(%r15)
	jmp	LBB0_9
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_MODE_RX,8,3                 ## @FM_MODE_RX
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_FM_RX_EMPHASIS_FILTER_50_USEC,8,3 ## @FM_RX_EMPHASIS_FILTER_50_USEC
	.comm	_FM_RX_EMPHASIS_FILTER_75_USEC,8,3 ## @FM_RX_EMPHASIS_FILTER_75_USEC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid rx de-emphasis mode (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DEMPH_MODE_SET,4,2             ## @DEMPH_MODE_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_rx_set_deemphasis_mode      ; -- Begin function fm_rx_set_deemphasis_mode
	.p2align	2
_fm_rx_set_deemphasis_mode:             ; @fm_rx_set_deemphasis_mode
	.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_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FM_MODE_RX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x1
Lloh3:
	adrp	x8, _FM_RX_EMPHASIS_FILTER_50_USEC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FM_RX_EMPHASIS_FILTER_50_USEC@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _FM_RX_EMPHASIS_FILTER_75_USEC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FM_RX_EMPHASIS_FILTER_75_USEC@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x0
	str	x19, [sp, #8]
Lloh9:
	adrp	x8, _DEMPH_MODE_SET@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEMPH_MODE_SET@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _REG_WR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_WR@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	w4, #8
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_7
; %bb.3:
	mov	w0, #0
	str	x19, [x20, #8]
	b	LBB0_7
LBB0_4:
Lloh15:
	adrp	x8, _EPERM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_fmerr
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_MODE_RX,8,3                 ; @FM_MODE_RX
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_FM_RX_EMPHASIS_FILTER_50_USEC,8,3 ; @FM_RX_EMPHASIS_FILTER_50_USEC
	.comm	_FM_RX_EMPHASIS_FILTER_75_USEC,8,3 ; @FM_RX_EMPHASIS_FILTER_75_USEC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid rx de-emphasis mode (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DEMPH_MODE_SET,4,2             ; @DEMPH_MODE_SET
	.comm	_REG_WR,4,2                     ; @REG_WR
.subsections_via_symbols
