	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_write                      ## -- Begin function sec_write
	.p2align	4, 0x90
_sec_write:                             ## @sec_write
	.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, %r12d
	movq	%rsi, %r14
	movl	%edi, %r15d
	movq	_data_prot@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_prot_clear@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_1
## %bb.6:
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%r12d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write                          ## TAILCALL
LBB0_1:
	movq	_buffer_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_mech@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_app_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	%ebx, %edx
	callq	*(%rax)
	testl	%r12d, %r12d
	je	LBB0_2
## %bb.3:
	subl	%eax, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, %r12d
	cmovll	%r12d, %ebx
	movl	%r15d, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_sec_send
	movslq	%ebx, %rax
	addq	%rax, %r14
	addl	%eax, %r13d
	subl	%eax, %r12d
	jne	LBB0_4
	jmp	LBB0_5
LBB0_2:
	xorl	%r13d, %r13d
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_buffer_size,4,2                ## @buffer_size
	.comm	_data_prot,8,3                  ## @data_prot
	.comm	_prot_clear,8,3                 ## @prot_clear
	.comm	_mech,8,3                       ## @mech
	.comm	_app_data,4,2                   ## @app_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sec_write                      ; -- Begin function sec_write
	.p2align	2
_sec_write:                             ; @sec_write
	.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
Lloh0:
	adrp	x8, _data_prot@GOTPAGE
Lloh1:
	ldr	x8, [x8, _data_prot@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
Lloh3:
	adrp	x8, _prot_clear@GOTPAGE
Lloh4:
	ldr	x8, [x8, _prot_clear@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x1, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, 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
	b	_write
LBB0_2:
Lloh6:
	adrp	x8, _buffer_size@GOTPAGE
Lloh7:
	ldr	x8, [x8, _buffer_size@GOTPAGEOFF]
Lloh8:
	adrp	x9, _mech@GOTPAGE
Lloh9:
	ldr	x9, [x9, _mech@GOTPAGEOFF]
Lloh10:
	ldr	w23, [x8]
Lloh11:
	ldr	x8, [x9]
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _app_data@GOTPAGE
Lloh13:
	ldr	x9, [x9, _app_data@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x9]
	mov	x2, x23
	blr	x8
	mov	w22, #0
	cbz	w19, LBB0_5
; %bb.3:
	sub	w23, w23, w0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w19, w23
	csel	w23, w19, w23, lt
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	_sec_send
	add	x20, x20, w23, sxtw
	add	w22, w22, w23
	subs	w19, w19, w23
	b.ne	LBB0_4
LBB0_5:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_buffer_size,4,2                ; @buffer_size
	.comm	_data_prot,8,3                  ; @data_prot
	.comm	_prot_clear,8,3                 ; @prot_clear
	.comm	_mech,8,3                       ; @mech
	.comm	_app_data,4,2                   ; @app_data
.subsections_via_symbols
