	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si4713_write_econtrol_string
_si4713_write_econtrol_string:          ## @si4713_write_econtrol_string
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rsi), %eax
	movl	%eax, -64(%rbp)
	leaq	-64(%rbp), %rsi
	callq	_si4713_queryctrl
	testq	%rax, %rax
	js	LBB0_16
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_7
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_11
## %bb.3:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_RDS_PS_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movslq	8(%rbx), %r12
	decq	%r12
	cmpl	(%r13), %r12d
	jg	LBB0_6
## %bb.4:
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	js	LBB0_15
## %bb.5:
	movb	$0, (%r15,%r12)
	movq	%r15, %rdi
	callq	_strlen
	cltd
	idivl	-60(%rbp)
	testl	%edx, %edx
	jne	LBB0_6
## %bb.12:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_si4713_set_rds_ps_name
	jmp	LBB0_15
LBB0_7:
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_RDS_RADIO_TEXT@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movslq	8(%rbx), %r12
	decq	%r12
	cmpl	(%r13), %r12d
	jg	LBB0_6
## %bb.8:
	movl	4(%rbx), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_copy_from_user
	testq	%rax, %rax
	js	LBB0_15
## %bb.9:
	movb	$0, (%r15,%r12)
	movq	%r15, %rdi
	callq	_strlen
	cltd
	idivl	-60(%rbp)
	testl	%edx, %edx
	je	LBB0_14
LBB0_6:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_15:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
                                        ## kill: def $eax killed $eax killed $rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_si4713_set_rds_radio_text
	jmp	LBB0_15
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RDS_PS_NAME,4,2            ## @MAX_RDS_PS_NAME
	.comm	_ERANGE,8,3                     ## @ERANGE
	.comm	_MAX_RDS_RADIO_TEXT,4,2         ## @MAX_RDS_RADIO_TEXT
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_si4713_write_econtrol_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si4713_write_econtrol_string
_si4713_write_econtrol_string:          ; @si4713_write_econtrol_string
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	w8, [x1]
	stur	w8, [x29, #-64]
	sub	x1, x29, #64
	bl	_si4713_queryctrl
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_12
; %bb.3:
	mov	x23, sp
Lloh3:
	adrp	x12, _MAX_RDS_PS_NAME@GOTPAGE
Lloh4:
	ldr	x12, [x12, _MAX_RDS_PS_NAME@GOTPAGEOFF]
	ldr	w8, [x12]
	add	w8, w8, #1
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldrsw	x8, [x20, #8]
	sub	x22, x8, #1
	ldr	w8, [x12]
	cmp	w22, w8
	b.gt	LBB0_10
; %bb.4:
	ldr	w1, [x20, #4]
	mov	x0, x21
	mov	x2, x22
	bl	_copy_from_user
	tbnz	x0, #63, LBB0_11
; %bb.5:
	strb	wzr, [x21, x22]
	mov	x0, x21
	bl	_strlen
	ldur	w8, [x29, #-60]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	cbnz	w8, LBB0_10
; %bb.6:
	mov	x0, x19
	mov	x1, x21
	bl	_si4713_set_rds_ps_name
	b	LBB0_11
LBB0_7:
	mov	x23, sp
Lloh7:
	adrp	x12, _MAX_RDS_RADIO_TEXT@GOTPAGE
Lloh8:
	ldr	x12, [x12, _MAX_RDS_RADIO_TEXT@GOTPAGEOFF]
	ldr	w8, [x12]
	add	w8, w8, #1
	mov	x9, x8
Lloh9:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh10:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldrsw	x8, [x20, #8]
	sub	x22, x8, #1
	ldr	w8, [x12]
	cmp	w22, w8
	b.gt	LBB0_10
; %bb.8:
	ldr	w1, [x20, #4]
	mov	x0, x21
	mov	x2, x22
	bl	_copy_from_user
	tbnz	x0, #63, LBB0_11
; %bb.9:
	strb	wzr, [x21, x22]
	mov	x0, x21
	bl	_strlen
	ldur	w8, [x29, #-60]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	cbz	w8, LBB0_15
LBB0_10:
Lloh11:
	adrp	x8, _ERANGE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_11:
	mov	sp, x23
	b	LBB0_13
LBB0_12:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	neg	x0, x8
LBB0_13:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.14:
                                        ; kill: def $w0 killed $w0 killed $x0
	sub	sp, x29, #48
	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
LBB0_15:
	mov	x0, x19
	mov	x1, x21
	bl	_si4713_set_rds_radio_text
	b	LBB0_11
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RDS_PS_NAME,4,2            ; @MAX_RDS_PS_NAME
	.comm	_ERANGE,8,3                     ; @ERANGE
	.comm	_MAX_RDS_RADIO_TEXT,4,2         ; @MAX_RDS_RADIO_TEXT
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_si4713_write_econtrol_string
.subsections_via_symbols
