	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_bell_values
_set_bell_values:                       ## @set_bell_values
	.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, %rbx
	movl	$0, -28(%rbp)
	leaq	L_.str(%rip), %rsi
	movl	$6, %edx
	callq	_strncmp
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CONS_QUIET_BELL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, -28(%rbp)
	addq	$6, %rbx
LBB0_2:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	$0, -28(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtol
	testl	%eax, %eax
	js	LBB0_21
## %bb.9:
	movq	-40(%rbp), %rbx
	cmpb	$46, (%rbx)
	jne	LBB0_21
## %bb.10:
	movl	%eax, %r14d
	incq	%rbx
	movq	%rbx, -40(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_strtol
	testl	%eax, %eax
	js	LBB0_21
## %bb.11:
	cmpb	$0, (%rbx)
	je	LBB0_21
## %bb.12:
	movl	%eax, %ecx
	movq	-40(%rbp), %rax
	cmpb	$0, (%rax)
	je	LBB0_13
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	callq	_warnx
	jmp	LBB0_20
LBB0_3:
	movq	_CONS_VISUAL_BELL@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	%r14d, -28(%rbp)
LBB0_7:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_5:
	movl	$800, %r15d                     ## imm = 0x320
	movl	$5, %ebx
LBB0_17:
	movq	_CONS_BELLTYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	xorl	%edi, %edi
	callq	_ioctl
	testl	%ebx, %ebx
	je	LBB0_20
## %bb.18:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.19:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_fprintf
LBB0_20:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.15:
	movl	$1193182, %eax                  ## imm = 0x1234DE
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %r15d
	jmp	LBB0_16
LBB0_14:
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r14d, %eax
	movl	$3435973837, %ebx               ## imm = 0xCCCCCCCD
	imulq	%rax, %rbx
	shrq	$35, %rbx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"quiet."

	.comm	_CONS_QUIET_BELL,4,2            ## @CONS_QUIET_BELL
L_.str.1:                               ## @.str.1
	.asciz	"visual"

	.comm	_CONS_VISUAL_BELL,4,2           ## @CONS_VISUAL_BELL
L_.str.2:                               ## @.str.2
	.asciz	"normal"

L_.str.3:                               ## @.str.3
	.asciz	"off"

L_.str.4:                               ## @.str.4
	.asciz	"argument to -b must be duration.pitch or [quiet.]visual|normal|off"

	.comm	_CONS_BELLTYPE,4,2              ## @CONS_BELLTYPE
	.comm	_stderr,4,2                     ## @stderr
L_.str.5:                               ## @.str.5
	.asciz	"\033[=%d;%dB"

	.no_dead_strip	_set_bell_values
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_bell_values
_set_bell_values:                       ; @set_bell_values
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #6
	bl	_strncmp
	cbz	w0, LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _CONS_QUIET_BELL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONS_QUIET_BELL@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	str	w21, [sp, #12]
	add	x19, x19, #6
LBB0_3:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_12
; %bb.4:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_13
; %bb.5:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	cbz	w0, LBB0_14
; %bb.6:
	str	wzr, [sp, #12]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	bl	_strtol
	tbnz	w0, #31, LBB0_11
; %bb.7:
	ldr	x8, [sp]
	ldrb	w9, [x8]
	cmp	w9, #46
	b.ne	LBB0_11
; %bb.8:
	mov	x20, x0
	add	x19, x8, #1
	str	x19, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	w2, #0
	bl	_strtol
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldrb	w8, [x19]
	cbz	w8, LBB0_11
; %bb.10:
	ldr	x8, [sp]
	ldrb	w8, [x8]
	cbz	w8, LBB0_19
LBB0_11:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_warnx
	b	LBB0_18
LBB0_12:
	mov	w20, #0
	mov	w19, #0
Lloh13:
	adrp	x8, _CONS_VISUAL_BELL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CONS_VISUAL_BELL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	orr	w8, w21, w8
	str	w8, [sp, #12]
	b	LBB0_15
LBB0_13:
	mov	w19, #800
	mov	w20, #5
	b	LBB0_15
LBB0_14:
	mov	w20, #0
	mov	w19, #0
LBB0_15:
Lloh16:
	adrp	x8, _CONS_BELLTYPE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CONS_BELLTYPE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	w0, #0
	bl	_ioctl
	cbz	w20, LBB0_18
; %bb.16:
	cbz	w19, LBB0_18
; %bb.17:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.5@PAGE
Lloh23:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x19
	mov	x3, x20
	bl	_fprintf
LBB0_18:
	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_19:
	cbz	w0, LBB0_21
; %bb.20:
	mov	w8, #13534
	movk	w8, #18, lsl #16
	udiv	w19, w8, w0
	b	LBB0_22
LBB0_21:
	mov	w19, #0
LBB0_22:
	mov	w8, #52429
	movk	w8, #52428, lsl #16
	umull	x8, w20, w8
	lsr	x20, x8, #35
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"quiet."

	.comm	_CONS_QUIET_BELL,4,2            ; @CONS_QUIET_BELL
l_.str.1:                               ; @.str.1
	.asciz	"visual"

	.comm	_CONS_VISUAL_BELL,4,2           ; @CONS_VISUAL_BELL
l_.str.2:                               ; @.str.2
	.asciz	"normal"

l_.str.3:                               ; @.str.3
	.asciz	"off"

l_.str.4:                               ; @.str.4
	.asciz	"argument to -b must be duration.pitch or [quiet.]visual|normal|off"

	.comm	_CONS_BELLTYPE,4,2              ; @CONS_BELLTYPE
	.comm	_stderr,4,2                     ; @stderr
l_.str.5:                               ; @.str.5
	.asciz	"\033[=%d;%dB"

	.no_dead_strip	_set_bell_values
.subsections_via_symbols
