	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kwrite                         ## -- Begin function kwrite
	.p2align	4, 0x90
_kwrite:                                ## @kwrite
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_errno@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	leaq	-60(%rbp), %rbx
	movq	%rbx, -168(%rbp)
	xorl	%edi, %edi
	callq	_time
	leaq	L_.str(%rip), %rsi
	leaq	-168(%rbp), %rdi
	movl	$4, %edx
	movl	%eax, %ecx
	callq	_kwrite_print_int
	xorl	%eax, %eax
	callq	_getpid
	leaq	L_.str.1(%rip), %rsi
	leaq	-168(%rbp), %rdi
	movl	$3, %edx
	movl	%eax, %ecx
	callq	_kwrite_print_int
	leaq	-160(%rbp), %rax
	xorl	%edi, %edi
	cmpq	%rax, -168(%rbp)
	setae	%dil
	callq	_assert
	movq	-168(%rbp), %rsi
	subq	%rsi, %rbx
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	je	LBB0_9
## %bb.1:
	movl	$0, (%r12)
	movl	%r15d, %edi
	movq	-176(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_write
	movl	(%r12), %ecx
	movq	_EINTR@GOTPCREL(%rip), %rdx
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	cmpl	(%rdx), %ecx
	jne	LBB0_18
LBB0_3:
	movq	%r13, -192(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rax, -168(%rbp)
	subq	%rax, %rbx
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-168(%rbp), %rsi
	movl	$0, (%r12)
	movl	%r15d, %edi
	movq	%r14, %r13
	movl	%r15d, %r14d
	movq	%r12, %r15
	movq	%rdx, %r12
	movq	%rbx, %rdx
	callq	_write
	movq	%r12, %rdx
	movq	%r15, %r12
	movl	%r14d, %r15d
	movq	%r13, %r14
	movq	-192(%rbp), %r13                ## 8-byte Reload
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	(%rdx), %ecx
	je	LBB0_4
	jmp	LBB0_18
LBB0_9:
	movq	-176(%rbp), %rax                ## 8-byte Reload
	addq	%r13, %rax
	testq	%r13, %r13
	je	LBB0_18
## %bb.10:
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	_EINTR@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	addq	%rax, %r14
	subq	%rax, %r13
	je	LBB0_17
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%r12)
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_write
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	(%rbx), %ecx
	jne	LBB0_18
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	jg	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_17:
	movq	-176(%rbp), %rax                ## 8-byte Reload
LBB0_18:
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	movl	%ecx, (%r12)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_20
## %bb.19:
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"time"

L_.str.1:                               ## @.str.1
	.asciz	"pid"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_S_BUF_SIZE,4,2                 ## @S_BUF_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kwrite                         ; -- Begin function kwrite
	.p2align	2
_kwrite:                                ; @kwrite
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x25, _errno@GOTPAGE
Lloh4:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
	ldr	w26, [x25]
	add	x22, sp, #20
	add	x23, x22, #100
	str	x23, [sp, #8]
	mov	x0, #0
	bl	_time
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #4
	bl	_kwrite_print_int
	bl	_getpid
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #3
	bl	_kwrite_print_int
	ldr	x8, [sp, #8]
	cmp	x8, x22
	cset	w0, hs
	bl	_assert
	ldr	x1, [sp, #8]
	subs	x23, x23, x1
	b.eq	LBB0_7
; %bb.1:
	str	wzr, [x25]
	mov	x0, x21
	mov	x2, x23
	bl	_write
	mov	x22, x0
	ldr	w8, [x25]
Lloh9:
	adrp	x27, _EINTR@GOTPAGE
Lloh10:
	ldr	x27, [x27, _EINTR@GOTPAGEOFF]
	ldr	w9, [x27]
	cmp	w8, #0
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_13
; %bb.2:
	mov	x24, x23
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #8]
	str	wzr, [x25]
	mov	x0, x21
	mov	x2, x24
	bl	_write
	mov	x22, x0
	ldr	w8, [x25]
	ldr	w9, [x27]
	cmp	w8, #0
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	tbnz	x22, #63, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	add	x8, x8, x22
	str	x8, [sp, #8]
	subs	x24, x24, x22
	b.ne	LBB0_3
LBB0_7:
	add	x22, x23, x19
	cbz	x19, LBB0_13
; %bb.8:
Lloh11:
	adrp	x23, _EINTR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x25]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_write
	ldr	w8, [x25]
	ldr	w9, [x23]
	cmp	w8, #0
	ccmp	w8, w9, #4, ne
	b.ne	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	x0, #0
	csel	x8, x0, xzr, gt
	add	x20, x20, x8
	subs	x19, x19, x8
	b.ne	LBB0_9
	b	LBB0_13
LBB0_12:
	mov	x22, x0
LBB0_13:
	str	w26, [x25]
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x22
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"time"

l_.str.1:                               ; @.str.1
	.asciz	"pid"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_S_BUF_SIZE,4,2                 ; @S_BUF_SIZE
.subsections_via_symbols
