	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_set_rds_ps_name
_si4713_set_rds_ps_name:                ## @si4713_set_rds_ps_name
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_strlen
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_MAX_RDS_PS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incl	%edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_memset
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpq	$0, 8(%r15)
	je	LBB0_9
## %bb.3:
	movq	_MAX_RDS_PS_NAME@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.4:
	movq	_RDS_BLOCK@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movslq	%ebx, %rdx
	addq	%r14, %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_si4713_tx_rds_ps
	testl	%eax, %eax
	js	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	%ecx, %ebx
	movq	_MAX_RDS_PS_NAME@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	jl	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %edi
	decl	%edi
	jmp	LBB0_12
LBB0_9:
	xorl	%r12d, %r12d
	jmp	LBB0_14
LBB0_11:
	movl	$1, %edi
LBB0_12:
	movq	_SI4713_TX_RDS_PS_MESSAGE_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_rds_ps_nblocks
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_si4713_write_property
	testl	%eax, %eax
	js	LBB0_15
## %bb.13:
	movq	_SI4713_TX_RDS_PS_REPEAT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DEFAULT_RDS_PS_REPEAT_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	%edx, %edx
	movq	%r15, %rdi
	callq	_si4713_write_property
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_16
LBB0_14:
	movl	4(%r15), %edi
	movq	_MAX_RDS_PS_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rsi
	callq	_strncpy
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %r12d
LBB0_16:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RDS_PS_NAME,4,2            ## @MAX_RDS_PS_NAME
	.comm	_RDS_BLOCK,4,2                  ## @RDS_BLOCK
	.comm	_SI4713_TX_RDS_PS_MESSAGE_COUNT,4,2 ## @SI4713_TX_RDS_PS_MESSAGE_COUNT
	.comm	_SI4713_TX_RDS_PS_REPEAT_COUNT,4,2 ## @SI4713_TX_RDS_PS_REPEAT_COUNT
	.comm	_DEFAULT_RDS_PS_REPEAT_COUNT,4,2 ## @DEFAULT_RDS_PS_REPEAT_COUNT
	.no_dead_strip	_si4713_set_rds_ps_name
.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_ps_name
_si4713_set_rds_ps_name:                ; @si4713_set_rds_ps_name
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_strlen
Lloh0:
	adrp	x22, _MAX_RDS_PS_NAME@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_RDS_PS_NAME@GOTPAGEOFF]
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w8, [x22]
	add	w2, w8, #1
	mov	x0, x20
	mov	w1, #0
	bl	_memset
LBB0_2:
	mov	x0, x19
	bl	_mutex_lock
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	w23, #0
Lloh2:
	adrp	x24, _RDS_BLOCK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RDS_BLOCK@GOTPAGEOFF]
	ldr	w8, [x24]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x2, x20, w23, sxtw
	sdiv	w1, w23, w8
	mov	x0, x19
	bl	_si4713_tx_rds_ps
	tbnz	w0, #31, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x24]
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w23, w23, w9, asr #1
	ldr	w9, [x22]
	cmp	w23, w9
	b.lt	LBB0_5
LBB0_7:
	mov	x0, x20
	bl	_strlen
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_strlen
	sub	w0, w0, #1
	b	LBB0_11
LBB0_9:
	mov	w21, #0
	b	LBB0_13
LBB0_10:
	mov	w0, #1
LBB0_11:
Lloh4:
	adrp	x8, _SI4713_TX_RDS_PS_MESSAGE_COUNT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SI4713_TX_RDS_PS_MESSAGE_COUNT@GOTPAGEOFF]
Lloh6:
	ldr	w21, [x8]
	bl	_rds_ps_nblocks
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_si4713_write_property
	tbnz	w0, #31, LBB0_14
; %bb.12:
Lloh7:
	adrp	x8, _SI4713_TX_RDS_PS_REPEAT_COUNT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SI4713_TX_RDS_PS_REPEAT_COUNT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x8, _DEFAULT_RDS_PS_REPEAT_COUNT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEFAULT_RDS_PS_REPEAT_COUNT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	lsl	w2, w8, #1
	mov	x0, x19
	bl	_si4713_write_property
	mov	x21, x0
	tbnz	w0, #31, LBB0_15
LBB0_13:
	ldr	w0, [x19, #4]
	ldr	w2, [x22]
	mov	x1, x20
	bl	_strncpy
	b	LBB0_15
LBB0_14:
	mov	x21, x0
LBB0_15:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RDS_PS_NAME,4,2            ; @MAX_RDS_PS_NAME
	.comm	_RDS_BLOCK,4,2                  ; @RDS_BLOCK
	.comm	_SI4713_TX_RDS_PS_MESSAGE_COUNT,4,2 ; @SI4713_TX_RDS_PS_MESSAGE_COUNT
	.comm	_SI4713_TX_RDS_PS_REPEAT_COUNT,4,2 ; @SI4713_TX_RDS_PS_REPEAT_COUNT
	.comm	_DEFAULT_RDS_PS_REPEAT_COUNT,4,2 ; @DEFAULT_RDS_PS_REPEAT_COUNT
	.no_dead_strip	_si4713_set_rds_ps_name
.subsections_via_symbols
