	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fm_tx_set_radio_text           ## -- Begin function fm_tx_set_radio_text
	.p2align	4, 0x90
_fm_tx_set_radio_text:                  ## @fm_tx_set_radio_text
	.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_TX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_fm_tx_set_rds_mode
	movq	%r14, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_set_rds_len
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_set_rds_text
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_set_rds_data_mode
	movl	$1, -28(%rbp)
	movq	_RDS_DATA_ENB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	$0, (%rsp)
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$4, %r8d
	xorl	%r9d, %r9d
	callq	_fmc_send_cmd
	movl	%eax, %ecx
	sarl	$31, %eax
	andl	%ecx, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FM_MODE_TX,8,3                 ## @FM_MODE_TX
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_RDS_DATA_ENB,4,2               ## @RDS_DATA_ENB
	.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_radio_text           ; -- Begin function fm_tx_set_radio_text
	.p2align	2
_fm_tx_set_radio_text:                  ; @fm_tx_set_radio_text
	.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
	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_2
; %bb.1:
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	w1, #0
	bl	_fm_tx_set_rds_mode
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_set_rds_len
	mov	x0, x19
	mov	x1, x20
	bl	_set_rds_text
	mov	x0, x19
	mov	w1, #0
	bl	_set_rds_data_mode
	mov	w8, #1
	str	w8, [sp, #12]
Lloh3:
	adrp	x8, _RDS_DATA_ENB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDS_DATA_ENB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _REG_WR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_WR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #12
	mov	x0, x19
	mov	w4, #4
	mov	x5, #0
	mov	x6, #0
	bl	_fmc_send_cmd
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _EPERM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FM_MODE_TX,8,3                 ; @FM_MODE_TX
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_RDS_DATA_ENB,4,2               ; @RDS_DATA_ENB
	.comm	_REG_WR,4,2                     ; @REG_WR
.subsections_via_symbols
