	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_set_stereo_mono          ## -- Begin function fm_rx_set_stereo_mono
	.p2align	4, 0x90
_fm_rx_set_stereo_mono:                 ## @fm_rx_set_stereo_mono
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_FM_STEREO_MODE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_FM_MONO_MODE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_fmerr
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_3:
	movq	%rsi, -24(%rbp)
	movq	_MOST_MODE_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	$0, (%rsp)
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_FM_STEREO_SOFT_BLEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movq	_MOST_BLEND_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	$0, (%rsp)
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_STEREO_MODE,8,3             ## @FM_STEREO_MODE
	.comm	_FM_MONO_MODE,8,3               ## @FM_MONO_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid mode\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MOST_MODE_SET,4,2              ## @MOST_MODE_SET
	.comm	_REG_WR,4,2                     ## @REG_WR
	.comm	_FM_STEREO_SOFT_BLEND,8,3       ## @FM_STEREO_SOFT_BLEND
	.comm	_MOST_BLEND_SET,4,2             ## @MOST_BLEND_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_set_stereo_mono          ; -- Begin function fm_rx_set_stereo_mono
	.p2align	2
_fm_rx_set_stereo_mono:                 ; @fm_rx_set_stereo_mono
	.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
Lloh0:
	adrp	x8, _FM_STEREO_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM_STEREO_MODE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FM_MONO_MODE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FM_MONO_MODE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_3
; %bb.1:
	mov	x19, x0
	str	x1, [sp, #8]
Lloh6:
	adrp	x8, _MOST_MODE_SET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MOST_MODE_SET@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x20, _REG_WR@GOTPAGE
Lloh10:
	ldr	x20, [x20, _REG_WR@GOTPAGEOFF]
	ldr	w2, [x20]
	add	x3, sp, #8
	mov	w4, #8
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_4
; %bb.2:
Lloh11:
	adrp	x8, _FM_STEREO_SOFT_BLEND@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FM_STEREO_SOFT_BLEND@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh14:
	adrp	x8, _MOST_BLEND_SET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MOST_BLEND_SET@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x20]
	add	x3, sp, #8
	mov	x0, x19
	mov	w4, #8
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_4
LBB0_3:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_STEREO_MODE,8,3             ; @FM_STEREO_MODE
	.comm	_FM_MONO_MODE,8,3               ; @FM_MONO_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid mode\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MOST_MODE_SET,4,2              ; @MOST_MODE_SET
	.comm	_REG_WR,4,2                     ; @REG_WR
	.comm	_FM_STEREO_SOFT_BLEND,8,3       ; @FM_STEREO_SOFT_BLEND
	.comm	_MOST_BLEND_SET,4,2             ; @MOST_BLEND_SET
.subsections_via_symbols
