	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath_hal_dumpregs
_ath_hal_dumpregs:                      ## @ath_hal_dumpregs
	.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	_state@GOTPCREL(%rip), %r14
	cmpq	$0, 16(%r14)
	setne	%al
	cmpq	$0, 8(%r14)
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	setne	%cl
	cmpl	$0, (%r14)
	jle	LBB0_12
## %bb.1:
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	andb	%cl, %al
	movzbl	%al, %eax
	movl	$4, %ecx
	subl	%eax, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %r13
	leaq	32(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdx
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_fprintf
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_ah@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %esi
	callq	_OS_REG_READ
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	incl	%r12d
	movl	%r12d, %eax
	cltd
	idivl	-52(%rbp)                       ## 4-byte Folded Reload
	testl	%edx, %edx
	leaq	L_.str.5(%rip), %r13
	leaq	L_.str.6(%rip), %rax
	cmoveq	%rax, %r13
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jge	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%rbx,8), %r15
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r15)
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_match
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdx
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_fprintf
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15), %edx
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_9
LBB0_11:
	testl	%r12d, %r12d
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	je	LBB0_12
## %bb.13:
	movl	$10, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fputc                          ## TAILCALL
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_state,40,3                     ## @state
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"%s%-8s"

L_.str.2:                               ## @.str.2
	.asciz	" [%04x]"

L_.str.3:                               ## @.str.3
	.asciz	"%s%04x"

L_.str.4:                               ## @.str.4
	.asciz	" %08x"

	.comm	_ah,4,2                         ## @ah
L_.str.5:                               ## @.str.5
	.asciz	" "

L_.str.6:                               ## @.str.6
	.asciz	"\n"

	.no_dead_strip	_ath_hal_dumpregs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath_hal_dumpregs
_ath_hal_dumpregs:                      ; @ath_hal_dumpregs
	.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
Lloh0:
	adrp	x26, _state@GOTPAGE
Lloh1:
	ldr	x26, [x26, _state@GOTPAGEOFF]
	ldp	x9, x8, [x26, #8]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	mov	w8, #3
	cinc	w27, w8, eq
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x24, #0
	mov	w28, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
Lloh4:
	adrp	x22, l_.str.4@PAGE
Lloh5:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh6:
	adrp	x23, l_.str.6@PAGE
Lloh7:
	add	x23, x23, l_.str.6@PAGEOFF
	b	LBB0_6
LBB0_2:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25, #4]
	stp	x21, x8, [sp]
	mov	x0, x19
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_fprintf
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
Lloh10:
	adrp	x8, _ah@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ah@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	w1, [x25, #4]
	bl	_OS_REG_READ
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_fprintf
	add	w28, w28, #1
	sdiv	w8, w28, w27
	msub	w8, w8, w27, w28
	cmp	w8, #0
Lloh13:
	adrp	x8, l_.str.5@PAGE
Lloh14:
	add	x8, x8, l_.str.5@PAGEOFF
	csel	x21, x23, x8, eq
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x26]
	cmp	x24, x8
	b.ge	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x26, #24]
	ldr	x25, [x8, x24, lsl #3]
	ldr	w8, [x25]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x26, #32
	mov	x0, x25
	bl	_match
	cbz	x0, LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25, #8]
	cbz	x8, LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	stp	x21, x8, [sp]
	mov	x0, x19
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	x8, [x26, #8]
	cbz	x8, LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x25, #4]
	str	x8, [sp]
	mov	x0, x19
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_3
LBB0_12:
	cbz	w28, LBB0_14
; %bb.13:
	mov	w0, #10
	mov	x1, x19
	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
	b	_fputc
LBB0_14:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_state,40,3                     ; @state
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"%s%-8s"

l_.str.2:                               ; @.str.2
	.asciz	" [%04x]"

l_.str.3:                               ; @.str.3
	.asciz	"%s%04x"

l_.str.4:                               ; @.str.4
	.asciz	" %08x"

	.comm	_ah,4,2                         ; @ah
l_.str.5:                               ; @.str.5
	.asciz	" "

l_.str.6:                               ; @.str.6
	.asciz	"\n"

	.no_dead_strip	_ath_hal_dumpregs
.subsections_via_symbols
