	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alt_jtag_drscan
_alt_jtag_drscan:                       ## @alt_jtag_drscan
	.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	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %ebx
                                        ## kill: def $esi killed $esi def $rsi
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.2:
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alt_jtag_io
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alt_jtag_io
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	testl	%esi, %esi
	jne	LBB0_11
LBB0_3:
	xorl	%r15d, %r15d
	movl	$1, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alt_jtag_io
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alt_jtag_io
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alt_jtag_io
	testl	%ebx, %ebx
	jle	LBB0_10
## %bb.4:
	xorl	%r13d, %r13d
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	setne	%r13b
	negl	%ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	notl	%r14d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	andl	%r14d, (%rax,%r12,4)
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incl	%r15d
	movl	%ebx, %eax
	addl	%r15d, %eax
	je	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%rbx,%r15), %eax
	xorl	%edi, %edi
	cmpl	$-1, %eax
	sete	%dil
	movl	%r15d, %ecx
	andb	$7, %cl
	movl	$1, %r14d
	shll	%cl, %r14d
	movl	%r15d, %r12d
	shrl	$3, %r12d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %esi
	andl	%r14d, %esi
	movl	%r13d, %edx
	callq	_alt_jtag_io
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	orl	%r14d, (%rax,%r12,4)
	jmp	LBB0_9
LBB0_10:
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_alt_jtag_io
	movl	$1, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_alt_jtag_drscan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alt_jtag_drscan
_alt_jtag_drscan:                       ; @alt_jtag_drscan
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	sub	w8, w1, #1
	cmp	w8, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	bl	_alt_jtag_io
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	bl	_alt_jtag_io
	b	LBB0_3
LBB0_2:
	cbnz	w1, LBB0_12
LBB0_3:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #0
	mov	w2, #0
	bl	_alt_jtag_io
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_alt_jtag_io
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_alt_jtag_io
	cmp	w21, #1
	b.lt	LBB0_11
; %bb.4:
	mov	w24, #0
	cmp	x19, #0
	cset	w22, ne
	neg	w21, w21
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x19, x8]
	orr	w9, w9, w25
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	w9, [x19, x8]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	w24, w24, #1
	cmn	w21, w24
	b.eq	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w21, w24
	cmn	w8, #1
	cset	w0, eq
	lsr	w26, w24, #3
	ldr	w8, [x20, w26, uxtw #2]
	and	w9, w24, #0x7
	lsl	w25, w23, w9
	and	w1, w8, w25
	mov	x2, x22
	bl	_alt_jtag_io
	cbz	x19, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	lsl	x8, x26, #2
	cbnz	w0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x19, x8]
	bic	w9, w9, w25
	b	LBB0_6
LBB0_11:
	mov	w0, #0
	mov	w1, #0
	mov	w2, #0
	bl	_alt_jtag_io
	mov	w0, #1
	b	LBB0_13
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_alt_jtag_drscan
.subsections_via_symbols
