	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuklib_exit                    ## -- Begin function tuklib_exit
	.p2align	4, 0x90
_tuklib_exit:                           ## @tuklib_exit
	.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
	movl	%edi, %r12d
	cmpl	%esi, %edi
	jne	LBB0_2
## %bb.1:
	movl	%r12d, %edi
	callq	_exit
LBB0_2:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	_stdout@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ferror
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_fclose
	orl	%eax, %ebx
	je	LBB0_8
## %bb.3:
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.4:
	movl	%eax, %r13d
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rbx
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	jmp	LBB0_7
LBB0_8:
	movq	_stderr@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ferror
	movl	%eax, %ebx
	movl	(%r15), %edi
	callq	_fclose
	orl	%ebx, %eax
	cmovel	%r12d, %r14d
LBB0_9:
	movl	%r14d, %edi
	callq	_exit
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	__
LBB0_7:
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%rax, %r8
	callq	_fprintf
	movl	%r14d, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stdout,4,2                     ## @stdout
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %s: %s\n"

	.comm	_progname,8,3                   ## @progname
L_.str.1:                               ## @.str.1
	.asciz	"Writing to standard output failed"

	.comm	_errno,4,2                      ## @errno
L_.str.2:                               ## @.str.2
	.asciz	"Unknown error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tuklib_exit                    ; -- Begin function tuklib_exit
	.p2align	2
_tuklib_exit:                           ; @tuklib_exit
	.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, x0
	cmp	w0, w1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_exit
LBB0_2:
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x23, _stdout@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stdout@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ferror
	mov	x22, x0
	ldr	w0, [x23]
	bl	_fclose
	orr	w8, w22, w0
	cbz	w8, LBB0_6
; %bb.3:
	cbz	w21, LBB0_7
; %bb.4:
	mov	x23, x0
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
Lloh5:
	adrp	x8, _progname@GOTPAGE
Lloh6:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh7:
	ldr	x21, [x8]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x22, x0
	cbz	w23, LBB0_8
; %bb.5:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
	b	LBB0_9
LBB0_6:
Lloh13:
	adrp	x22, _stderr@GOTPAGE
Lloh14:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_ferror
	mov	x21, x0
	ldr	w0, [x22]
	bl	_fclose
	orr	w8, w0, w21
	cmp	w8, #0
	csel	w19, w19, w20, ne
LBB0_7:
	mov	x0, x19
	bl	_exit
LBB0_8:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
LBB0_9:
	mov	x4, x0
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	mov	x3, x22
	bl	_fprintf
	mov	x0, x19
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_stdout,4,2                     ; @stdout
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %s: %s\n"

	.comm	_progname,8,3                   ; @progname
l_.str.1:                               ; @.str.1
	.asciz	"Writing to standard output failed"

	.comm	_errno,4,2                      ; @errno
l_.str.2:                               ; @.str.2
	.asciz	"Unknown error"

.subsections_via_symbols
