	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_set_rds_radio_text
_si4713_set_rds_radio_text:             ## @si4713_set_rds_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_mutex_lock
	cmpl	$0, 8(%r13)
	je	LBB0_1
## %bb.2:
	movq	_RDS_BLOCK_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %r9
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_si4713_tx_rds_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movq	_RDS_RADIOTEXT_BLK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	movq	_RDS_RADIOTEXT_INDEX_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	imull	%eax, %ecx
	movslq	%r14d, %r13
	cmpl	%ecx, %r14d
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	jle	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDS_CARRIAGE_RETURN@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movslq	%r14d, %r15
	movl	%eax, %eax
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addq	%r15, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rdx,%rsi), %ebx
	testb	%bl, %bl
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpb	%cl, %bl
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_11 Depth=2
	incq	%rsi
	cmpq	%rsi, %rax
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %r15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movb	%cl, (%rsi,%rdx)
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_RDS_BLOCK_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_RDS_RADIOTEXT_2A@GOTPCREL(%rip), %rax
	movsbl	(%rax), %edi
	movsbl	%r12b, %esi
	callq	_compose_u16
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movsbl	(%rbx,%r15), %edi
	movsbl	1(%r13,%rbx), %esi
	callq	_compose_u16
	movl	%eax, %r15d
	movsbl	2(%r13,%rbx), %edi
	movsbl	3(%r13,%rbx), %esi
	callq	_compose_u16
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movl	%eax, %r8d
	leaq	-72(%rbp), %r9
	callq	_si4713_tx_rds_buff
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r12d
	movq	_RDS_RADIOTEXT_BLK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %r14d
	cmpq	$0, -72(%rbp)
	setg	%cl
	testb	%cl, -44(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_5
	jmp	LBB0_16
LBB0_1:
	xorl	%ebx, %ebx
LBB0_16:
	movl	4(%r13), %edi
	movq	_MAX_RDS_RADIO_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_strncpy
LBB0_17:
	movq	%r13, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RDS_BLOCK_CLEAR,4,2            ## @RDS_BLOCK_CLEAR
	.comm	_RDS_RADIOTEXT_INDEX_MAX,4,2    ## @RDS_RADIOTEXT_INDEX_MAX
	.comm	_RDS_RADIOTEXT_BLK_SIZE,4,2     ## @RDS_RADIOTEXT_BLK_SIZE
	.comm	_RDS_CARRIAGE_RETURN,1,0        ## @RDS_CARRIAGE_RETURN
	.comm	_RDS_BLOCK_LOAD,4,2             ## @RDS_BLOCK_LOAD
	.comm	_RDS_RADIOTEXT_2A,1,0           ## @RDS_RADIOTEXT_2A
	.comm	_MAX_RDS_RADIO_TEXT,4,2         ## @MAX_RDS_RADIO_TEXT
	.no_dead_strip	_si4713_set_rds_radio_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_set_rds_radio_text
_si4713_set_rds_radio_text:             ; @si4713_set_rds_radio_text
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_13
; %bb.1:
Lloh0:
	adrp	x8, _RDS_BLOCK_CLEAR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RDS_BLOCK_CLEAR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	bl	_si4713_tx_rds_buff
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.2:
	mov	x0, x20
	bl	_strlen
	cbz	w0, LBB0_14
; %bb.3:
	mov	w24, #0
	mov	w25, #0
Lloh3:
	adrp	x8, _RDS_RADIOTEXT_BLK_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RDS_RADIOTEXT_BLK_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x26, _RDS_RADIOTEXT_2A@GOTPAGE
Lloh7:
	ldr	x26, [x26, _RDS_RADIOTEXT_2A@GOTPAGEOFF]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
Lloh8:
	adrp	x9, _RDS_RADIOTEXT_INDEX_MAX@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RDS_RADIOTEXT_INDEX_MAX@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	mul	w9, w8, w9
	cmp	w24, w9
	ccmp	w8, #0, #4, lt
	b.gt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x23, w24
	mov	w27, #1
	b	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh11:
	adrp	x9, _RDS_CARRIAGE_RETURN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RDS_CARRIAGE_RETURN@GOTPAGEOFF]
	ldrb	w9, [x9]
	mov	x10, x24
	sxtw	x23, w10
	mov	w8, w8
	add	x10, x20, x23
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x10]
	cmp	w11, #0
	ccmp	w11, w9, #4, ne
	b.eq	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x10, x10, #1
	subs	x8, x8, #1
	b.ne	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #0
	strb	w9, [x10]
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _RDS_BLOCK_LOAD@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RDS_BLOCK_LOAD@GOTPAGEOFF]
Lloh15:
	ldr	w21, [x8]
	ldrsb	w0, [x26]
	sxtb	w1, w25
	bl	_compose_u16
	mov	x22, x0
	ldrsb	w0, [x20, x23]
	add	x28, x20, w24, sxtw
	ldrsb	w1, [x28, #1]
	bl	_compose_u16
	mov	x23, x0
	ldrsb	w0, [x28, #2]
	ldrsb	w1, [x28, #3]
	bl	_compose_u16
	mov	x4, x0
	add	x5, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	x3, x23
	bl	_si4713_tx_rds_buff
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
Lloh16:
	adrp	x8, _RDS_RADIOTEXT_BLK_SIZE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _RDS_RADIOTEXT_BLK_SIZE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	add	w24, w8, w24
	ldr	x9, [sp, #8]
	cmp	x9, #0
	cset	w9, gt
	and	w9, w27, w9
	tbnz	w9, #0, LBB0_4
	b	LBB0_14
LBB0_13:
	mov	w21, #0
LBB0_14:
	ldr	w0, [x19, #4]
Lloh19:
	adrp	x8, _MAX_RDS_RADIO_TEXT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MAX_RDS_RADIO_TEXT@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strncpy
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_RDS_BLOCK_CLEAR,4,2            ; @RDS_BLOCK_CLEAR
	.comm	_RDS_RADIOTEXT_INDEX_MAX,4,2    ; @RDS_RADIOTEXT_INDEX_MAX
	.comm	_RDS_RADIOTEXT_BLK_SIZE,4,2     ; @RDS_RADIOTEXT_BLK_SIZE
	.comm	_RDS_CARRIAGE_RETURN,1,0        ; @RDS_CARRIAGE_RETURN
	.comm	_RDS_BLOCK_LOAD,4,2             ; @RDS_BLOCK_LOAD
	.comm	_RDS_RADIOTEXT_2A,1,0           ; @RDS_RADIOTEXT_2A
	.comm	_MAX_RDS_RADIO_TEXT,4,2         ; @MAX_RDS_RADIO_TEXT
	.no_dead_strip	_si4713_set_rds_radio_text
.subsections_via_symbols
