	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_halt_coresight            ## -- Begin function goya_halt_coresight
	.p2align	4, 0x90
_goya_halt_coresight:                   ## @goya_halt_coresight
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -48(%rbp)
	movq	_GOYA_ETF_FIRST@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_GOYA_ETF_LAST@GOTPCREL(%rip), %r13
	cmpl	(%r13), %ebx
	jle	LBB0_1
LBB0_5:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_goya_config_etr
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-48(%rbp), %r15
	leaq	L_.str(%rip), %r12
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	1(%rbx), %eax
	cmpl	(%r13), %ebx
	movl	%eax, %ebx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, -48(%rbp)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_goya_config_etf
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %edi
	movq	%r12, %rsi
	movl	%eax, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GOYA_ETF_FIRST,4,2             ## @GOYA_ETF_FIRST
	.comm	_GOYA_ETF_LAST,4,2              ## @GOYA_ETF_LAST
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"halt ETF failed, %d/%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"halt ETR failed, %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_goya_halt_coresight            ; -- Begin function goya_halt_coresight
	.p2align	2
_goya_halt_coresight:                   ; @goya_halt_coresight
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _GOYA_ETF_FIRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GOYA_ETF_FIRST@GOTPAGEOFF]
	str	wzr, [sp, #8]
Lloh2:
	ldr	w22, [x8]
Lloh3:
	adrp	x21, _GOYA_ETF_LAST@GOTPAGE
Lloh4:
	ldr	x21, [x21, _GOYA_ETF_LAST@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w22, w8
	b.le	LBB0_4
LBB0_1:
	add	x1, sp, #8
	mov	x0, x19
	bl	_goya_config_etr
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
Lloh7:
	adrp	x20, l_.str@PAGE
Lloh8:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w22, #1
	ldr	w9, [x21]
	cmp	w22, w9
	mov	x22, x8
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	w22, [sp, #8]
	add	x1, sp, #8
	mov	x0, x19
	bl	_goya_config_etf
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	ldr	w0, [x19]
	str	x22, [sp]
	mov	x1, x20
	bl	_dev_err
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GOYA_ETF_FIRST,4,2             ; @GOYA_ETF_FIRST
	.comm	_GOYA_ETF_LAST,4,2              ; @GOYA_ETF_LAST
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"halt ETF failed, %d/%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"halt ETR failed, %d\n"

.subsections_via_symbols
