	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function manage_channel
_manage_channel:                        ## @manage_channel
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -76(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, -72(%rbp)                 ## 4-byte Spill
	movl	%esi, -68(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	movl	$0, %r15d
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movl	$-1, %edi
	callq	_cpu_to_be32
	movl	%eax, %r15d
LBB0_2:
	movl	$5, -60(%rbp)                   ## 4-byte Folded Spill
	movl	%r15d, -80(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	xorl	%ebx, %ebx
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%r14), %eax
	cmpl	$31, %r14d
	movl	%eax, %r14d
	jge	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r14d, %r12d
	jae	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ebx, %ebx
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	$-2147483648, %edi              ## imm = 0x80000000
	movl	%r14d, %ecx
	shrl	%cl, %edi
	callq	_cpu_to_be32
	movl	%eax, %r13d
	movl	%r15d, %eax
	xorl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%eax, %r13d
	jne	LBB0_15
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, -56(%rbp)
	movl	%r13d, %eax
	xorl	%r15d, %eax
	movl	%eax, -52(%rbp)
	movq	_TCODE_LOCK_COMPARE_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCODE_100@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	movl	-72(%rbp), %ecx                 ## 4-byte Reload
	movl	-76(%rbp), %r9d                 ## 4-byte Reload
	pushq	$8
	leaq	-56(%rbp), %rax
	pushq	%rax
	callq	_fw_run_transaction
	addq	$16, %rsp
	cmpl	$129, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %eax
	jne	LBB0_12
	jmp	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	-56(%rbp), %eax
	cmpl	%r15d, %eax
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx
	xorl	%eax, %ecx
	movl	%eax, %r15d
	testl	%r13d, %ecx
	je	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	decl	%r14d
	jmp	LBB0_15
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
	jmp	LBB0_15
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	cmovel	%r14d, %ebx
	jmp	LBB0_16
LBB0_9:
	movl	%r14d, %ebx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_TCODE_LOCK_COMPARE_SWAP,4,2    ## @TCODE_LOCK_COMPARE_SWAP
	.comm	_SCODE_100,4,2                  ## @SCODE_100
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_manage_channel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function manage_channel
_manage_channel:                        ; @manage_channel
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	w2, w4, [sp, #8]                ; 8-byte Folded Spill
	mov	x21, x3
	str	w1, [sp, #4]                    ; 4-byte Folded Spill
	mov	x25, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _EIO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w28, w8
	str	w5, [sp]                        ; 4-byte Folded Spill
	cbz	w5, LBB0_2
; %bb.1:
	mov	w0, #-1
	bl	_cpu_to_be32
	mov	x24, x0
	b	LBB0_3
LBB0_2:
	mov	w24, #0
LBB0_3:
	mov	w23, #0
	mov	w19, #5
Lloh6:
	adrp	x20, _EBUSY@GOTPAGE
Lloh7:
	ldr	x20, [x20, _EBUSY@GOTPAGEOFF]
	mov	w22, #-2147483648
	mov	x26, x24
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w28, w8
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w23, #1
	cmp	w23, #31
	mov	x23, x8
	b.ge	LBB0_17
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w21, w23
	tbz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	neg	w28, w8
	lsr	w0, w22, w23
	bl	_cpu_to_be32
	eor	w8, w26, w24
	tst	w0, w8
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x0
	eor	w8, w0, w26
	stp	w26, w8, [sp, #16]
Lloh11:
	adrp	x8, _TCODE_LOCK_COMPARE_SWAP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCODE_LOCK_COMPARE_SWAP@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _SCODE_100@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SCODE_100@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	add	x6, sp, #16
	mov	x0, x25
	ldp	w2, w3, [sp, #4]                ; 8-byte Folded Reload
	ldr	w5, [sp, #12]                   ; 4-byte Folded Reload
	mov	w7, #8
	bl	_fw_run_transaction
	cmp	w0, #129
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w0, #128
	b.ne	LBB0_12
	b	LBB0_15
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [sp, #16]
	cmp	w8, w26
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w9, [sp, #20]
	eor	w9, w9, w8
	mov	x26, x8
	tst	w9, w27
	b.eq	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	cbz	w19, LBB0_4
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w19, w19, #1
	sub	w23, w23, #1
	b	LBB0_5
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, x8
	b	LBB0_5
LBB0_15:
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [sp]                        ; 4-byte Folded Reload
	cmp	w9, #0
	csneg	w28, w23, w8, eq
	b	LBB0_17
LBB0_16:
	mov	x28, x23
LBB0_17:
	ldr	x8, [sp, #24]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x28
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_TCODE_LOCK_COMPARE_SWAP,4,2    ; @TCODE_LOCK_COMPARE_SWAP
	.comm	_SCODE_100,4,2                  ; @SCODE_100
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_manage_channel
.subsections_via_symbols
