	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_send                   ## -- Begin function channel_send
	.p2align	4, 0x90
_channel_send:                          ## @channel_send
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	_channel_hdr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_s_pop_layer
	movq	(%r15), %rbx
	subq	8(%r15), %rbx
	addq	$-8, %rbx
	movq	%rbx, %rdi
	callq	_DEBUG_CHANNEL
	movq	_CHANNEL_CHUNK_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MIN
	movq	%rax, %r14
	movq	_CHANNEL_FLAG_FIRST@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	movl	$0, %eax
	movl	$0, %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rbx
	jne	LBB0_2
## %bb.1:
	movq	_CHANNEL_FLAG_LAST@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r12
LBB0_2:
	orq	(%rcx), %r12
	movq	_CHANNEL_OPTION_SHOW_PROTOCOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	andl	(%rdx), %ecx
	je	LBB0_4
## %bb.3:
	movq	_CHANNEL_FLAG_SHOW_PROTOCOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	orq	%rax, %r12
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_out_uint32_le
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_out_uint32_le
	movq	8(%r15), %r12
	addq	%r14, %r12
	movq	%r12, (%r15)
	movq	%r14, %rdi
	callq	_DEBUG_CHANNEL
	movq	_g_encryption@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_SEC_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
LBB0_6:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_sec_send_to_channel
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	subq	%r14, %rbx
	jg	LBB0_7
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_sec_send_to_channel
	leaq	(%r12,%r13,4), %r12
	subq	%r13, %rbx
	jle	LBB0_16
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	_CHANNEL_CHUNK_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_MIN
	movq	%rax, %r13
	movl	$0, %eax
	cmpq	%r13, %rbx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_CHANNEL_FLAG_LAST@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	_CHANNEL_OPTION_SHOW_PROTOCOL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$0, %r15d
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	andl	(%rdx), %ecx
	movq	_g_encryption@GOTPCREL(%rip), %r14
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_CHANNEL_FLAG_SHOW_PROTOCOL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	orq	%rax, %r15
	movq	%r15, %rdi
	callq	_DEBUG_CHANNEL
	cmpq	$0, (%r14)
	movl	$0, %edi
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_13:                                ##   in Loop: Header=BB0_7 Depth=1
	leal	8(%r13), %esi
	callq	_sec_init
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_out_uint32_le
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_out_uint32_le
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_out_uint8p
	movq	%r14, %rdi
	callq	_s_mark_end
	movq	_g_encryption@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movl	$0, %esi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	_SEC_ENCRYPT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_channel_hdr,4,2                ## @channel_hdr
	.comm	_CHANNEL_CHUNK_LENGTH,4,2       ## @CHANNEL_CHUNK_LENGTH
	.comm	_CHANNEL_FLAG_FIRST,8,3         ## @CHANNEL_FLAG_FIRST
	.comm	_CHANNEL_FLAG_LAST,8,3          ## @CHANNEL_FLAG_LAST
	.comm	_CHANNEL_OPTION_SHOW_PROTOCOL,4,2 ## @CHANNEL_OPTION_SHOW_PROTOCOL
	.comm	_CHANNEL_FLAG_SHOW_PROTOCOL,8,3 ## @CHANNEL_FLAG_SHOW_PROTOCOL
	.comm	_g_encryption,8,3               ## @g_encryption
	.comm	_SEC_ENCRYPT,4,2                ## @SEC_ENCRYPT
	.comm	_SCARD_LOCK_CHANNEL,4,2         ## @SCARD_LOCK_CHANNEL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_channel_send                   ; -- Begin function channel_send
	.p2align	2
_channel_send:                          ; @channel_send
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _channel_hdr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _channel_hdr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_s_pop_layer
	ldp	x8, x9, [x23]
	sub	x8, x8, x9
	sub	x20, x8, #8
	mov	x0, x20
	bl	_DEBUG_CHANNEL
Lloh3:
	adrp	x25, _CHANNEL_CHUNK_LENGTH@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CHANNEL_CHUNK_LENGTH@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x20
	bl	_MIN
	mov	x24, x0
	subs	x21, x20, x0
Lloh5:
	adrp	x8, _CHANNEL_FLAG_FIRST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CHANNEL_FLAG_FIRST@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	adrp	x26, _CHANNEL_FLAG_LAST@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CHANNEL_FLAG_LAST@GOTPAGEOFF]
	ldr	x9, [x26]
	csel	x9, x9, xzr, eq
	orr	x8, x9, x8
	ldr	w9, [x19]
Lloh10:
	adrp	x10, _CHANNEL_OPTION_SHOW_PROTOCOL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _CHANNEL_OPTION_SHOW_PROTOCOL@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
Lloh13:
	adrp	x11, _CHANNEL_FLAG_SHOW_PROTOCOL@GOTPAGE
Lloh14:
	ldr	x11, [x11, _CHANNEL_FLAG_SHOW_PROTOCOL@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x11]
	tst	w10, w9
	csel	x9, xzr, x11, eq
	orr	x22, x8, x9
	mov	x0, x23
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	mov	x1, x20
	bl	_out_uint32_le
	mov	x0, x23
	mov	x1, x22
	bl	_out_uint32_le
	ldr	x8, [x23, #8]
	add	x22, x8, x24
	str	x22, [x23]
	mov	x0, x24
	bl	_DEBUG_CHANNEL
Lloh16:
	adrp	x27, _g_encryption@GOTPAGE
Lloh17:
	ldr	x27, [x27, _g_encryption@GOTPAGEOFF]
	ldr	x8, [x27]
Lloh18:
	adrp	x28, _SEC_ENCRYPT@GOTPAGE
Lloh19:
	ldr	x28, [x28, _SEC_ENCRYPT@GOTPAGEOFF]
	ldr	w9, [x28]
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	ldr	w2, [x19, #4]
	mov	x0, x23
	bl	_sec_send_to_channel
	cmp	x21, #1
	b.lt	LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x21
	bl	_MIN
	mov	x23, x0
	subs	x21, x21, x0
	ldr	x8, [x26]
	csel	x8, x8, xzr, eq
	ldr	w9, [x19]
Lloh20:
	adrp	x10, _CHANNEL_OPTION_SHOW_PROTOCOL@GOTPAGE
Lloh21:
	ldr	x10, [x10, _CHANNEL_OPTION_SHOW_PROTOCOL@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
Lloh23:
	adrp	x11, _CHANNEL_FLAG_SHOW_PROTOCOL@GOTPAGE
Lloh24:
	ldr	x11, [x11, _CHANNEL_FLAG_SHOW_PROTOCOL@GOTPAGEOFF]
Lloh25:
	ldr	x11, [x11]
	tst	w10, w9
	csel	x9, xzr, x11, eq
	orr	x24, x9, x8
	mov	x0, x24
	bl	_DEBUG_CHANNEL
	ldr	x8, [x27]
	ldr	w9, [x28]
	cmp	x8, #0
	csel	w0, wzr, w9, eq
	add	w1, w23, #8
	bl	_sec_init
	mov	x20, x26
	mov	x26, x25
	mov	x25, x0
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_out_uint32_le
	mov	x0, x25
	mov	x1, x24
	bl	_out_uint32_le
	mov	x0, x25
	mov	x1, x22
	mov	x2, x23
	bl	_out_uint8p
	mov	x0, x25
	bl	_s_mark_end
	ldr	x8, [x27]
	ldr	w9, [x28]
	cmp	x8, #0
	csel	w1, wzr, w9, eq
	ldr	w2, [x19, #4]
	mov	x0, x25
	mov	x25, x26
	mov	x26, x20
	bl	_sec_send_to_channel
	add	x22, x22, x23, lsl #2
	cmp	x21, #0
	b.gt	LBB0_1
LBB0_2:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_channel_hdr,4,2                ; @channel_hdr
	.comm	_CHANNEL_CHUNK_LENGTH,4,2       ; @CHANNEL_CHUNK_LENGTH
	.comm	_CHANNEL_FLAG_FIRST,8,3         ; @CHANNEL_FLAG_FIRST
	.comm	_CHANNEL_FLAG_LAST,8,3          ; @CHANNEL_FLAG_LAST
	.comm	_CHANNEL_OPTION_SHOW_PROTOCOL,4,2 ; @CHANNEL_OPTION_SHOW_PROTOCOL
	.comm	_CHANNEL_FLAG_SHOW_PROTOCOL,8,3 ; @CHANNEL_FLAG_SHOW_PROTOCOL
	.comm	_g_encryption,8,3               ; @g_encryption
	.comm	_SEC_ENCRYPT,4,2                ; @SEC_ENCRYPT
	.comm	_SCARD_LOCK_CHANNEL,4,2         ; @SCARD_LOCK_CHANNEL
.subsections_via_symbols
