	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function putpad
_putpad:                                ## @putpad
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_tmode@GOTPCREL(%rip), %rdi
	callq	_cfgetospeed
	movl	%eax, %r14d
	movsbl	(%r15), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movsbl	(%r15), %edi
	callq	_isdigit
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rcx), %r15
	movsbl	(%rcx), %eax
	addl	%ebx, %eax
	leal	(%rax,%rax,4), %eax
	leal	(%rax,%rax), %ebx
	addl	$-480, %ebx                     ## imm = 0xFE20
	movsbl	1(%rcx), %edi
	callq	_isdigit
	movq	%r15, %rcx
	testq	%rax, %rax
	jne	LBB0_4
LBB0_5:
	cmpb	$46, (%r15)
	jne	LBB0_8
## %bb.6:
	movsbl	1(%r15), %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movsbl	1(%r15), %eax
	addl	%eax, %ebx
	addl	$-48, %ebx
	addq	$2, %r15
	jmp	LBB0_8
LBB0_1:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%r15, %rdi
	callq	_puts
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.9:
	testl	%r14d, %r14d
	jle	LBB0_13
## %bb.10:
	imull	%r14d, %ebx
	leal	149999(%rbx), %eax
	cmpl	$199999, %eax                   ## imm = 0x30D3F
	jb	LBB0_13
## %bb.11:
	addl	$50000, %ebx                    ## imm = 0xC350
	movslq	%ebx, %rax
	imulq	$351843721, %rax, %rbx          ## imm = 0x14F8B589
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$45, %rbx
	addl	%eax, %ebx
	movq	_PC@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_putchr
	decl	%ebx
	jne	LBB0_12
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tmode,4,2                      ## @tmode
	.comm	_PC,8,3                         ## @PC
	.no_dead_strip	_putpad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function putpad
_putpad:                                ; @putpad
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
Lloh0:
	adrp	x0, _tmode@GOTPAGE
Lloh1:
	ldr	x0, [x0, _tmode@GOTPAGEOFF]
	bl	_cfgetospeed
	mov	x19, x0
	ldrsb	w0, [x20]
	bl	_isdigit
	cbz	x0, LBB0_7
; %bb.1:
	ldrsb	w0, [x20]
	bl	_isdigit
	mov	w21, #0
	cbz	x0, LBB0_4
; %bb.2:
	mov	w22, #10
	mov	x8, x20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	ldrsb	w8, [x8]
	add	w8, w21, w8
	mul	w8, w8, w22
	sub	w21, w8, #480
	bl	_isdigit
	mov	x8, x20
	cbnz	x0, LBB0_3
LBB0_4:
	ldrb	w8, [x20]
	cmp	w8, #46
	b.ne	LBB0_8
; %bb.5:
	ldrsb	w0, [x20, #1]
	bl	_isdigit
	cbz	x0, LBB0_8
; %bb.6:
	ldrsb	w8, [x20, #1]
	add	w8, w21, w8
	sub	w21, w8, #48
	add	x20, x20, #2
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x20
	bl	_puts
	cbz	w21, LBB0_12
; %bb.9:
	cmp	w19, #1
	mul	w8, w21, w19
	add	w9, w8, #36, lsl #12            ; =147456
	add	w9, w9, #2543
	mov	w10, #3391
	movk	w10, #3, lsl #16
	ccmp	w9, w10, #0, ge
	b.lo	LBB0_12
; %bb.10:
	mov	w9, #50000
	add	w8, w8, w9
	mov	w9, #46473
	movk	w9, #5368, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #45
	add	w19, w8, w9
Lloh2:
	adrp	x20, _PC@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PC@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	ldr	x8, [x20]
	ldr	w0, [x8]
	bl	_putchr
	cbnz	w19, LBB0_11
LBB0_12:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tmode,4,2                      ; @tmode
	.comm	_PC,8,3                         ; @PC
	.no_dead_strip	_putpad
.subsections_via_symbols
