	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_read                       ## -- Begin function sec_read
	.p2align	4, 0x90
_sec_read:                              ## @sec_read
	.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	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r15d
	movq	_sec_complete@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_data_prot@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.2:
	movq	_in_buffer@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.3:
	movl	$0, (%rax)
LBB0_4:
	xorl	%r12d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%r15d, %edi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_read                           ## TAILCALL
LBB0_7:
	movq	_in_buffer@GOTPCREL(%rip), %r13
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_buffer_read
	movq	%rax, %r12
	subl	%r12d, %r14d
	je	LBB0_5
## %bb.8:
	addq	%r12, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_buffer_read
	addl	%eax, %r12d
	addq	%rax, %rbx
	subl	%eax, %r14d
	je	LBB0_5
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	_data_prot@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movl	%r15d, %edi
	movq	%r13, %rsi
	callq	_sec_get_data
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	jne	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 8(%r13)
	jne	LBB0_9
## %bb.13:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.14:
	movl	$1, (%r13)
	jmp	LBB0_5
LBB0_15:
	movl	$-1, %r12d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_sec_complete,8,3               ## @sec_complete
	.comm	_data_prot,8,3                  ## @data_prot
	.comm	_in_buffer,16,3                 ## @in_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_read                       ; -- Begin function sec_read
	.p2align	2
_sec_read:                              ; @sec_read
	.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	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _sec_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sec_complete@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x24, _data_prot@GOTPAGE
Lloh4:
	ldr	x24, [x24, _data_prot@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, #0
	ccmp	x9, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	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
	b	_read
LBB0_2:
Lloh5:
	adrp	x8, _in_buffer@GOTPAGE
Lloh6:
	ldr	x8, [x8, _in_buffer@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_5
; %bb.3:
	mov	w19, #0
	str	wzr, [x8]
LBB0_4:
	mov	x0, x19
	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
LBB0_5:
Lloh7:
	adrp	x21, _in_buffer@GOTPAGE
Lloh8:
	ldr	x21, [x21, _in_buffer@GOTPAGEOFF]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_buffer_read
	mov	x19, x0
	subs	w22, w22, w19
	b.eq	LBB0_4
; %bb.6:
	add	x23, x23, x19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x24]
	mov	x0, x20
	mov	x1, x21
	bl	_sec_get_data
	tbnz	w0, #31, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x21, #8]
	cmp	w0, #0
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_buffer_read
	add	w19, w19, w0
	add	x23, x23, x0
	subs	w22, w22, w0
	b.ne	LBB0_7
	b	LBB0_4
LBB0_10:
	mov	w19, #-1
	b	LBB0_4
LBB0_11:
	cbz	w19, LBB0_4
; %bb.12:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sec_complete,8,3               ; @sec_complete
	.comm	_data_prot,8,3                  ; @data_prot
	.comm	_in_buffer,16,3                 ; @in_buffer
.subsections_via_symbols
