	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen_tunnel
_gen_tunnel:                            ## @gen_tunnel
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$256, %ebx                      ## imm = 0x100
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	incq	%rax
	cmoveq	%r15, %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_tunnel_bts
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%ebx
	cmpl	$2, %ebx
	jae	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	callq	_tunnel_recycle
	movl	$256, %ebx                      ## imm = 0x100
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	incq	%rax
	cmoveq	%r15, %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_tunnel_bts
	testq	%rax, %rax
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_5
## %bb.7:
	movq	%r14, %rdi
	callq	_tunnel_recycle
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movl	(%r14), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_gen_tunnel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen_tunnel
_gen_tunnel:                            ; @gen_tunnel
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w20, #256
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	adds	x8, x8, #1
	csinc	x8, x8, xzr, lo
	str	x8, [x19]
	mov	x0, x19
	bl	_tunnel_bts
	cbnz	x0, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	w20, w20, #1
	cmp	w20, #2
	b.hs	LBB0_1
; %bb.3:
	mov	x0, x19
	bl	_tunnel_recycle
	mov	w20, #256
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	adds	x8, x8, #1
	csinc	x8, x8, xzr, lo
	str	x8, [x19]
	mov	x0, x19
	bl	_tunnel_bts
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w20, w20, #1
	cmp	w20, #1
	b.hi	LBB0_4
; %bb.6:
	mov	x0, x19
	bl	_tunnel_recycle
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_gen_tunnel
.subsections_via_symbols
