	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgzf_getline                   ## -- Begin function bgzf_getline
	.p2align	4, 0x90
_bgzf_getline:                          ## @bgzf_getline
	.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
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	24(%rdi), %r13
	movl	$0, (%rdx)
	movl	(%rdi), %ecx
	movl	4(%rdi), %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_23
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
	cmpl	%ebx, %ecx
	jge	LBB0_2
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%ebx, %ecx
	jge	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ecx, %rax
	movzbl	(%r13,%rax), %edx
	movb	$1, %sil
	cmpl	%r14d, %edx
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%ebx, %rdx
	incq	%rax
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%eax, %ebx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_13 Depth=2
	movzbl	(%r13,%rax), %esi
	incq	%rax
	cmpl	%r14d, %esi
	jne	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	decq	%rax
	cmpq	%rdx, %rax
	setl	%sil
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_bgzf_read_block
	testq	%rax, %rax
	jne	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r12), %ecx
	cmpl	%ebx, %ecx
	jl	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	movl	%ecx, %ebx
	jmp	LBB0_17
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpq	%rdx, %rax
	setl	%sil
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	subl	%ecx, %ebx
	movl	(%r15), %edi
	leal	(%rdi,%rbx), %eax
	incl	%eax
	cmpl	4(%r15), %eax
	jge	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r15), %rax
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	%ebx, %edi
	addl	$2, %edi
	movl	%edi, 4(%r15)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_kroundup32
	movq	8(%r15), %rdi
	movl	4(%r15), %esi
	callq	_realloc
	movq	%rax, 8(%r15)
	movl	(%r15), %edi
	movl	(%r12), %ecx
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	movslq	%edi, %rdi
	addq	%rax, %rdi
	movslq	%ecx, %rsi
	addq	%r13, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	addl	%ebx, (%r15)
	movl	(%r12), %ecx
	movl	4(%r12), %eax
	addl	%ebx, %ecx
	incl	%ecx
	movl	%ecx, (%r12)
	cmpl	%eax, %ecx
	jl	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %edi
	callq	__bgzf_tell
	movl	%eax, 16(%r12)
	movq	$0, (%r12)
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_23:
	movl	(%r15), %ecx
	jmp	LBB0_24
LBB0_3:
	movl	$-2, %eax
	jmp	LBB0_4
LBB0_6:
	movl	$-1, %eax
LBB0_4:
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_25
LBB0_24:
	movq	8(%r15), %rax
	movslq	%ecx, %rcx
	movb	$0, (%rax,%rcx)
	movl	(%r15), %eax
LBB0_25:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bgzf_getline                   ; -- Begin function bgzf_getline
	.p2align	2
_bgzf_getline:                          ; @bgzf_getline
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x23, [x0, #24]
	str	wzr, [x2]
	ldp	w8, w9, [x0]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cbnz	w24, LBB0_21
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cmp	w8, w9
	b.ge	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, w9
	b.ge	LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x11, w8
	ldrb	w10, [x23, x11]
	cmp	w10, w20
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #1
	mov	x9, x11
	b	LBB0_16
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x21
	bl	_bgzf_read_block
	cbnz	x0, LBB0_22
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x21, #4]
	cbz	w9, LBB0_23
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cmp	w8, w9
	b.lt	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w24, #0
	mov	x9, x8
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x10, x9
	sxtw	x10, w10
	add	x11, x11, #1
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w9, w11
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	ldrb	w12, [x23, x11]
	add	x11, x11, #1
	cmp	w12, w20
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	sub	x9, x11, #1
	cmp	x9, x10
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	x11, x10
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	cset	w24, lt
LBB0_16:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w10, w11, [x19]
	sub	w22, w9, w8
	add	w9, w10, w22
	add	w12, w9, #1
	cmp	w12, w11
	b.ge	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x19, #8]
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w0, w9, #2
	str	w0, [x19, #4]
	bl	_kroundup32
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #4]
	bl	_realloc
	str	x0, [x19, #8]
	ldr	w10, [x19]
	ldr	w8, [x21]
LBB0_19:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, w10, sxtw
	add	x1, x23, w8, sxtw
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x19]
	add	w8, w8, w22
	str	w8, [x19]
	ldp	w8, w9, [x21]
	add	w8, w22, w8
	add	w8, w8, #1
	str	w8, [x21]
	cmp	w8, w9
	b.lt	LBB0_1
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21, #8]
	bl	__bgzf_tell
	mov	w9, #0
	mov	w8, #0
	str	w0, [x21, #16]
	str	xzr, [x21]
	b	LBB0_1
LBB0_21:
	ldr	w8, [x19]
	b	LBB0_25
LBB0_22:
	mov	w0, #-2
	b	LBB0_24
LBB0_23:
	mov	w0, #-1
LBB0_24:
	ldr	w8, [x19]
	cbz	w8, LBB0_26
LBB0_25:
	ldr	x9, [x19, #8]
	strb	wzr, [x9, w8, sxtw]
	ldr	w0, [x19]
LBB0_26:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
