	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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	$1096, %rsp                     ## imm = 0x448
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movb	$1, %r12b
	leaq	L_.str(%rip), %rbx
	xorl	%r13d, %r13d
	movl	$0, -1076(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_usage
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_getopt
	cmpl	$102, %eax
	jg	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$100, %eax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, -1076(%rbp)                 ## 4-byte Folded Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$103, %eax
	je	LBB0_1
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$104, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r13d
	jmp	LBB0_4
LBB0_1:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_10:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%r13d, -1120(%rbp)              ## 4-byte Spill
	testl	%r13d, %r13d
	movl	%r12d, -1116(%rbp)              ## 4-byte Spill
	je	LBB0_13
## %bb.11:
	leaq	-1096(%rbp), %rdi
	leaq	-1088(%rbp), %rsi
	callq	_open_memstream
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_14
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_13:
	movq	_stdout@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
LBB0_14:
	leaq	-1104(%rbp), %rdi
	callq	_oidname_init
	cmpl	%r14d, %ebx
	jne	LBB0_15
## %bb.21:
	leaq	-1072(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_oid_get_root
	leaq	-1104(%rbp), %r14
	movl	-1076(%rbp), %r15d              ## 4-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	movq	%r13, %rcx
	callq	_oid_print
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_oid_get_next
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_23
LBB0_15:
	subl	%ebx, %r14d
	testl	%r14d, %r14d
	jle	LBB0_23
## %bb.16:
	leaq	(%r15,%rbx,8), %rax
	movq	%rax, -1136(%rbp)               ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -1128(%rbp)               ## 8-byte Spill
	xorl	%r12d, %r12d
	leaq	-1112(%rbp), %r14
	leaq	-1072(%rbp), %rbx
	leaq	-1104(%rbp), %r15
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%r12
	cmpq	-1128(%rbp), %r12               ## 8-byte Folded Reload
	je	LBB0_23
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movq	-1136(%rbp), %rax               ## 8-byte Reload
	movq	(%rax,%r12,8), %rsi
	movq	%r14, %rdi
	callq	_oid_get_by_name
	movl	-1112(%rbp), %eax
	movl	%eax, -1072(%rbp)
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	-1076(%rbp), %edx               ## 4-byte Reload
	movq	%r13, %rcx
	callq	_oid_print
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_oid_get_next
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_oid_is_beneath
	testq	%rax, %rax
	jne	LBB0_18
	jmp	LBB0_20
LBB0_23:
	cmpl	$0, -1120(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_37
## %bb.24:
	movq	%r13, %rdi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_26
## %bb.25:
	movq	%r13, %rdi
	callq	_fclose
	testq	%rax, %rax
	je	LBB0_27
LBB0_26:
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_27:
	testb	$1, -1116(%rbp)                 ## 1-byte Folded Reload
	jne	LBB0_33
## %bb.28:
	movq	-1088(%rbp), %rbx
	movq	%rbx, -1072(%rbp)
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_30
## %bb.29:
	leaq	L_.str.4(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	-1088(%rbp), %rbx
LBB0_30:
	movq	-1096(%rbp), %rdi
	leaq	-1072(%rbp), %rcx
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_buf_gzip
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	movq	-1096(%rbp), %rdi
	callq	_free
	movq	%r14, -1096(%rbp)
	movq	-1072(%rbp), %rax
	movq	%rax, -1088(%rbp)
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_34
LBB0_32:
	movq	%r14, %rdi
	callq	_free
LBB0_33:
	leaq	L_.str.2(%rip), %rdx
LBB0_34:
	movq	_STDOUT_FILENO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	-1088(%rbp), %rcx
	leaq	L_.str.6(%rip), %rsi
	callq	_dprintf
	movl	(%rbx), %edi
	movq	-1096(%rbp), %rsi
	movq	-1088(%rbp), %rdx
	callq	_write
	movq	-1096(%rbp), %rdi
	callq	_free
	movq	_STDIN_FILENO@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_SHUT_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_shutdown
	testq	%rax, %rax
	jne	LBB0_37
## %bb.35:
	leaq	-1072(%rbp), %rbx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	%rbx, %rsi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_read
	testq	%rax, %rax
	jg	LBB0_36
LBB0_37:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_39
## %bb.38:
	xorl	%eax, %eax
	addq	$1096, %rsp                     ## imm = 0x448
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dgh"

	.comm	_optind,8,3                     ## @optind
L_.str.1:                               ## @.str.1
	.asciz	"open_memstream"

	.comm	_stdout,8,3                     ## @stdout
L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	"Cannot generate output"

L_.str.4:                               ## @.str.4
	.asciz	"Cannot allocate compression buffer"

L_.str.5:                               ## @.str.5
	.asciz	"Content-Encoding: gzip\r\n"

	.comm	_STDOUT_FILENO,4,2              ## @STDOUT_FILENO
L_.str.6:                               ## @.str.6
	.asciz	"HTTP/1.1 200 OK\r\nConnection: close\r\n%sContent-Length: %zu\r\nContent-Type: text/plain; version=0.0.4\r\n\r\n"

	.comm	_STDIN_FILENO,4,2               ## @STDIN_FILENO
	.comm	_SHUT_WR,4,2                    ## @SHUT_WR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1072
	mov	x20, x1
	mov	x21, x0
	mov	w24, #0
	mov	w19, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	mov	w23, #1
Lloh3:
	adrp	x22, l_.str@PAGE
Lloh4:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_usage
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_getopt
	cmp	w0, #102
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #100
	b.ne	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w19, #1
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #103
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w0, #104
	b.ne	LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #1
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w23, #0
	b	LBB0_2
LBB0_10:
Lloh5:
	adrp	x8, _optind@GOTPAGE
Lloh6:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh7:
	ldr	x26, [x8]
	cbz	w24, LBB0_13
; %bb.11:
	add	x0, sp, #24
	add	x1, sp, #16
	bl	_open_memstream
	mov	x22, x0
	cbnz	x0, LBB0_14
; %bb.12:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _stdout@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
LBB0_14:
	add	x0, sp, #32
	bl	_oidname_init
	cmp	w26, w21
	b.ne	LBB0_17
; %bb.15:
	add	x0, sp, #40
	bl	_oid_get_root
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x19
	mov	x3, x22
	bl	_oid_print
	add	x0, sp, #40
	add	x1, sp, #40
	bl	_oid_get_next
	cbnz	x0, LBB0_16
	b	LBB0_23
LBB0_17:
	sub	w21, w21, w26
	cmp	w21, #1
	b.lt	LBB0_23
; %bb.18:
	mov	x25, #0
	add	x20, x20, x26, lsl #3
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x25, x25, #1
	cmp	x25, x21
	b.eq	LBB0_23
LBB0_20:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_21 Depth 2
	ldr	x1, [x20, x25, lsl #3]
	add	x0, sp, #8
	bl	_oid_get_by_name
	ldr	w8, [sp, #8]
	str	w8, [sp, #40]
LBB0_21:                                ;   Parent Loop BB0_20 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #40
	add	x1, sp, #32
	mov	x2, x19
	mov	x3, x22
	bl	_oid_print
	add	x0, sp, #40
	add	x1, sp, #40
	bl	_oid_get_next
	cbz	x0, LBB0_19
; %bb.22:                               ;   in Loop: Header=BB0_21 Depth=2
	add	x0, sp, #40
	add	x1, sp, #8
	bl	_oid_is_beneath
	cbnz	x0, LBB0_21
	b	LBB0_19
LBB0_23:
	cbz	w24, LBB0_36
; %bb.24:
	mov	x0, x22
	bl	_ferror
	cbnz	x0, LBB0_26
; %bb.25:
	mov	x0, x22
	bl	_fclose
	cbz	x0, LBB0_27
LBB0_26:
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_27:
	tbnz	w23, #0, LBB0_33
; %bb.28:
	ldr	x20, [sp, #16]
	str	x20, [sp, #40]
	mov	x0, x20
	bl	_malloc
	mov	x19, x0
	cbnz	x0, LBB0_30
; %bb.29:
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x20, [sp, #16]
LBB0_30:
	ldr	x0, [sp, #24]
	add	x3, sp, #40
	mov	x1, x20
	mov	x2, x19
	bl	_buf_gzip
	cbz	x0, LBB0_32
; %bb.31:
	ldr	x0, [sp, #24]
	bl	_free
	ldr	x8, [sp, #40]
	stp	x8, x19, [sp, #16]
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_34
LBB0_32:
	mov	x0, x19
	bl	_free
LBB0_33:
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_34:
Lloh21:
	adrp	x19, _STDOUT_FILENO@GOTPAGE
Lloh22:
	ldr	x19, [x19, _STDOUT_FILENO@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	x3, [sp, #16]
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dprintf
	ldr	w0, [x19]
	ldp	x2, x1, [sp, #16]
	bl	_write
	ldr	x0, [sp, #24]
	bl	_free
Lloh25:
	adrp	x19, _STDIN_FILENO@GOTPAGE
Lloh26:
	ldr	x19, [x19, _STDIN_FILENO@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh27:
	adrp	x8, _SHUT_WR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _SHUT_WR@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	bl	_shutdown
	cbnz	x0, LBB0_36
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	x1, sp, #40
	mov	w2, #1024
	bl	_read
	cmp	x0, #0
	b.gt	LBB0_35
LBB0_36:
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_38
; %bb.37:
	mov	w0, #0
	add	sp, sp, #1072
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_38:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dgh"

	.comm	_optind,8,3                     ; @optind
l_.str.1:                               ; @.str.1
	.asciz	"open_memstream"

	.comm	_stdout,8,3                     ; @stdout
l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	"Cannot generate output"

l_.str.4:                               ; @.str.4
	.asciz	"Cannot allocate compression buffer"

l_.str.5:                               ; @.str.5
	.asciz	"Content-Encoding: gzip\r\n"

	.comm	_STDOUT_FILENO,4,2              ; @STDOUT_FILENO
l_.str.6:                               ; @.str.6
	.asciz	"HTTP/1.1 200 OK\r\nConnection: close\r\n%sContent-Length: %zu\r\nContent-Type: text/plain; version=0.0.4\r\n\r\n"

	.comm	_STDIN_FILENO,4,2               ; @STDIN_FILENO
	.comm	_SHUT_WR,4,2                    ; @SHUT_WR
.subsections_via_symbols
