	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movl	$0, %r13d
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movl	$-1, %edi
	callq	_cpu_to_be32
	movl	%eax, %r13d
LBB0_2:
	movq	16(%rbp), %r15
	movl	$5, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%r13d, -64(%rbp)                ## 4-byte Spill
	jmp	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$128, %eax
	je	LBB0_7
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$-1, -48(%rbp)                  ## 4-byte Folded Spill
	sbbl	$0, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leal	1(%rbx), %eax
	cmpl	$31, %ebx
	movl	%eax, %ebx
	jge	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ebx, %r12d
	jae	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$-2147483648, %edi              ## imm = 0x80000000
	movl	%ebx, %ecx
	shrl	%cl, %edi
	callq	_cpu_to_be32
	movl	%eax, %r14d
	movl	%r13d, %eax
	xorl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%eax, %r14d
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r13d, (%r15)
	movl	%r14d, %eax
	xorl	%r13d, %eax
	movl	%eax, 4(%r15)
	movq	_TCODE_LOCK_COMPARE_SWAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCODE_100@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	$8
	pushq	%r15
	callq	_fw_run_transaction
	addq	$16, %rsp
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	cmpl	%r13d, %eax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r15), %ecx
	xorl	%eax, %ecx
	movl	%eax, %r13d
	testl	%r14d, %ecx
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	jmp	LBB0_12
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	cmovel	%ebx, %ecx
	movl	%ecx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TCODE_LOCK_COMPARE_SWAP,4,2    ## @TCODE_LOCK_COMPARE_SWAP
	.comm	_SCODE_100,4,2                  ## @SCODE_100
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_EIO,4,2                        ## @EIO
	.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, #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	x20, x6
	stp	w2, w4, [sp, #8]                ; 8-byte Folded Spill
	mov	x22, x3
	mov	x24, x1
	mov	x25, x0
	str	w5, [sp, #4]                    ; 4-byte Folded Spill
	cbz	w5, LBB0_2
; %bb.1:
	mov	w0, #-1
	bl	_cpu_to_be32
	mov	x23, x0
	b	LBB0_3
LBB0_2:
	mov	w23, #0
LBB0_3:
	mov	w26, #0
	mov	w19, #5
	mov	w21, #-2147483648
	mov	x27, x23
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w0, #128
	b.eq	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	subs	w19, w19, #1
	cset	w8, hs
	sub	w26, w26, w8
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w26, #1
	cmp	w26, #31
	mov	x26, x8
	b.ge	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w22, w26
	tbz	w8, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	lsr	w0, w21, w26
	bl	_cpu_to_be32
	eor	w8, w27, w23
	tst	w0, w8
	b.ne	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, x0
	eor	w8, w0, w27
	stp	w27, w8, [x20]
Lloh0:
	adrp	x8, _TCODE_LOCK_COMPARE_SWAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TCODE_LOCK_COMPARE_SWAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SCODE_100@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCODE_100@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x25
	mov	x2, x24
	ldp	w3, w5, [sp, #8]                ; 8-byte Folded Reload
	mov	x6, x20
	mov	w7, #8
	bl	_fw_run_transaction
	cmp	w0, #129
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x20]
	cmp	w8, w27
	b.eq	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x20, #4]
	eor	w9, w9, w8
	mov	x27, x8
	tst	w9, w28
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x27, x8
	b	LBB0_6
LBB0_13:
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w26, w8
LBB0_14:
	mov	x0, x26
	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
LBB0_15:
Lloh9:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #4]                    ; 4-byte Folded Reload
	cmp	w9, #0
	csneg	w26, w26, w8, eq
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TCODE_LOCK_COMPARE_SWAP,4,2    ; @TCODE_LOCK_COMPARE_SWAP
	.comm	_SCODE_100,4,2                  ; @SCODE_100
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_manage_channel
.subsections_via_symbols
