	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_set_rds_mode             ## -- Begin function fm_rx_set_rds_mode
	.p2align	4, 0x90
_fm_rx_set_rds_mode:                    ## @fm_rx_set_rds_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_FM_RDS_ENABLE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	_FM_RDS_DISABLE@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	cmpq	%rsi, %rax
	je	LBB0_3
## %bb.1:
	cmpq	%rsi, %rcx
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_fmerr
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_23
LBB0_3:
	cmpq	%rsi, %rax
	jne	LBB0_11
## %bb.4:
	cmpq	%rcx, (%r14)
	jne	LBB0_11
## %bb.5:
	movq	_FM_RX_PWR_SET_FM_AND_RDS_BLK_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_POWER_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	$0, (%rsp)
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_22
## %bb.6:
	movq	_FM_RX_RDS_FLUSH_FIFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_RDS_CNTRL_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	$0, (%rsp)
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_22
## %bb.7:
	movq	_FLAG_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_22
## %bb.8:
	movq	_FM_RX_RDS_FIFO_THRESHOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_RDS_MEM_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	$0, (%rsp)
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_22
## %bb.9:
	movq	_FM_RDS_EVENT@GOTPCREL(%rip), %r13
	movl	32(%r14), %eax
	orl	(%r13), %eax
	movl	%eax, 32(%r14)
	movl	%eax, -44(%rbp)
	movq	_INT_MASK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_21
## %bb.10:
	movq	(%r15), %rax
	jmp	LBB0_15
LBB0_11:
	xorl	%ebx, %ebx
	cmpq	%rsi, %rcx
	jne	LBB0_23
## %bb.12:
	cmpq	%rax, (%r14)
	jne	LBB0_23
## %bb.13:
	movq	_FM_RX_PWR_SET_FM_ON_RDS_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_POWER_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %rcx
	movq	%r14, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	testl	%eax, %eax
	js	LBB0_22
## %bb.14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%r14)
	movq	$0, 24(%r14)
	movq	%r14, %rdi
	callq	_fm_rx_reset_station_info
	movq	_FM_RDS_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 32(%r14)
	movq	(%r12), %rax
LBB0_15:
	movq	%rax, (%r14)
	jmp	LBB0_23
LBB0_21:
	movl	(%r13), %ecx
	notl	%ecx
	andl	%ecx, 32(%r14)
LBB0_22:
	movl	%eax, %ebx
LBB0_23:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_RDS_ENABLE,8,3              ## @FM_RDS_ENABLE
	.comm	_FM_RDS_DISABLE,8,3             ## @FM_RDS_DISABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid rds option\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FM_RX_PWR_SET_FM_AND_RDS_BLK_ON,4,2 ## @FM_RX_PWR_SET_FM_AND_RDS_BLK_ON
	.comm	_POWER_SET,4,2                  ## @POWER_SET
	.comm	_REG_WR,4,2                     ## @REG_WR
	.comm	_FM_RX_RDS_FLUSH_FIFO,4,2       ## @FM_RX_RDS_FLUSH_FIFO
	.comm	_RDS_CNTRL_SET,4,2              ## @RDS_CNTRL_SET
	.comm	_FLAG_GET,4,2                   ## @FLAG_GET
	.comm	_REG_RD,4,2                     ## @REG_RD
	.comm	_FM_RX_RDS_FIFO_THRESHOLD,4,2   ## @FM_RX_RDS_FIFO_THRESHOLD
	.comm	_RDS_MEM_SET,4,2                ## @RDS_MEM_SET
	.comm	_FM_RDS_EVENT,4,2               ## @FM_RDS_EVENT
	.comm	_INT_MASK_SET,4,2               ## @INT_MASK_SET
	.comm	_FM_RX_PWR_SET_FM_ON_RDS_OFF,4,2 ## @FM_RX_PWR_SET_FM_ON_RDS_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_rx_set_rds_mode             ; -- Begin function fm_rx_set_rds_mode
	.p2align	2
_fm_rx_set_rds_mode:                    ; @fm_rx_set_rds_mode
	.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
Lloh0:
	adrp	x20, _FM_RDS_ENABLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _FM_RDS_ENABLE@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh2:
	adrp	x21, _FM_RDS_DISABLE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _FM_RDS_DISABLE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
	cmp	x8, x1
	b.ne	LBB0_10
; %bb.2:
	ldr	x10, [x19]
	cmp	x10, x9
	b.ne	LBB0_10
; %bb.3:
Lloh4:
	adrp	x8, _FM_RX_PWR_SET_FM_AND_RDS_BLK_ON@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FM_RX_PWR_SET_FM_AND_RDS_BLK_ON@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh7:
	adrp	x8, _POWER_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _POWER_SET@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x21, _REG_WR@GOTPAGE
Lloh11:
	ldr	x21, [x21, _REG_WR@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_16
; %bb.4:
Lloh12:
	adrp	x8, _FM_RX_RDS_FLUSH_FIFO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FM_RX_RDS_FLUSH_FIFO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh15:
	adrp	x8, _RDS_CNTRL_SET@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RDS_CNTRL_SET@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_16
; %bb.5:
Lloh18:
	adrp	x8, _FLAG_GET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FLAG_GET@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _REG_RD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_RD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, #0
	mov	w4, #2
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_16
; %bb.6:
Lloh24:
	adrp	x8, _FM_RX_RDS_FIFO_THRESHOLD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FM_RX_RDS_FIFO_THRESHOLD@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh27:
	adrp	x8, _RDS_MEM_SET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RDS_MEM_SET@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_16
; %bb.7:
Lloh30:
	adrp	x22, _FM_RDS_EVENT@GOTPAGE
Lloh31:
	ldr	x22, [x22, _FM_RDS_EVENT@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	w9, [x19, #32]
	orr	w8, w9, w8
	str	w8, [x19, #32]
	str	w8, [sp, #12]
Lloh32:
	adrp	x8, _INT_MASK_SET@GOTPAGE
Lloh33:
	ldr	x8, [x8, _INT_MASK_SET@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x21]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	tbnz	w0, #31, LBB0_17
; %bb.8:
	mov	w0, #0
	ldr	x8, [x20]
	b	LBB0_14
LBB0_9:
Lloh35:
	adrp	x0, l_.str@PAGE
Lloh36:
	add	x0, x0, l_.str@PAGEOFF
	bl	_fmerr
Lloh37:
	adrp	x8, _EINVAL@GOTPAGE
Lloh38:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_16
LBB0_10:
	cmp	x9, x1
	b.ne	LBB0_15
; %bb.11:
	ldr	x9, [x19]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.12:
Lloh40:
	adrp	x8, _FM_RX_PWR_SET_FM_ON_RDS_OFF@GOTPAGE
Lloh41:
	ldr	x8, [x8, _FM_RX_PWR_SET_FM_ON_RDS_OFF@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [sp, #12]
Lloh43:
	adrp	x8, _POWER_SET@GOTPAGE
Lloh44:
	ldr	x8, [x8, _POWER_SET@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
Lloh46:
	adrp	x8, _REG_WR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _REG_WR@GOTPAGEOFF]
Lloh48:
	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_16
; %bb.13:
	stp	xzr, xzr, [x19, #8]
	str	xzr, [x19, #24]
	mov	x0, x19
	bl	_fm_rx_reset_station_info
	mov	w0, #0
Lloh49:
	adrp	x8, _FM_RDS_EVENT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _FM_RDS_EVENT@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
	str	w8, [x19, #32]
	ldr	x8, [x21]
LBB0_14:
	str	x8, [x19]
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	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
LBB0_17:
	ldr	w8, [x22]
	ldr	w9, [x19, #32]
	bic	w8, w9, w8
	str	w8, [x19, #32]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_RDS_ENABLE,8,3              ; @FM_RDS_ENABLE
	.comm	_FM_RDS_DISABLE,8,3             ; @FM_RDS_DISABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid rds option\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FM_RX_PWR_SET_FM_AND_RDS_BLK_ON,4,2 ; @FM_RX_PWR_SET_FM_AND_RDS_BLK_ON
	.comm	_POWER_SET,4,2                  ; @POWER_SET
	.comm	_REG_WR,4,2                     ; @REG_WR
	.comm	_FM_RX_RDS_FLUSH_FIFO,4,2       ; @FM_RX_RDS_FLUSH_FIFO
	.comm	_RDS_CNTRL_SET,4,2              ; @RDS_CNTRL_SET
	.comm	_FLAG_GET,4,2                   ; @FLAG_GET
	.comm	_REG_RD,4,2                     ; @REG_RD
	.comm	_FM_RX_RDS_FIFO_THRESHOLD,4,2   ; @FM_RX_RDS_FIFO_THRESHOLD
	.comm	_RDS_MEM_SET,4,2                ; @RDS_MEM_SET
	.comm	_FM_RDS_EVENT,4,2               ; @FM_RDS_EVENT
	.comm	_INT_MASK_SET,4,2               ; @INT_MASK_SET
	.comm	_FM_RX_PWR_SET_FM_ON_RDS_OFF,4,2 ; @FM_RX_PWR_SET_FM_ON_RDS_OFF
.subsections_via_symbols
