	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_file_regdump
_open_file_regdump:                     ## @open_file_regdump
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	(%rbx), %edi
	callq	_AR_SREV_9300_20_OR_LATER
	testq	%rax, %rax
	movl	$11585, %eax                    ## imm = 0x2D41
	movl	$8705, %r13d                    ## imm = 0x2201
	cmoveq	%rax, %r13
	movq	_REGDUMP_LINE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	imulq	%r13, %rdi
	incq	%rdi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_vmalloc
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ath9k_ps_wakeup
	xorl	%edx, %edx
	leaq	_open_file_regdump.reg_hole_list(%rip), %rcx
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%edx, %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r13
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	subq	%rax, %rbx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%r14d, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	callq	_REG_READ
	movq	%r13, %rdi
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	%rbx, %rsi
	leaq	L_.str(%rip), %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_scnprintf
	leaq	_open_file_regdump.reg_hole_list(%rip), %rcx
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r12d
	movslq	%r12d, %rax
	cmpq	%rax, %r13
	jbe	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r15d, %rax
	leal	(,%r12,4), %r14d
	cmpl	%r14d, (%rcx,%rax,8)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rcx,%rax,8), %r12d
	sarl	$2, %r12d
	incl	%eax
	movl	%eax, %r15d
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath9k_ps_restore
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @open_file_regdump.reg_hole_list
_open_file_regdump.reg_hole_list:
	.long	512                             ## 0x200
	.long	2044                            ## 0x7fc
	.long	3072                            ## 0xc00
	.long	4092                            ## 0xffc
	.long	8192                            ## 0x2000
	.long	16380                           ## 0x3ffc
	.long	16640                           ## 0x4100
	.long	28668                           ## 0x6ffc
	.long	28764                           ## 0x705c
	.long	32764                           ## 0x7ffc
	.space	8

	.comm	_REGDUMP_LINE_SIZE,8,3          ## @REGDUMP_LINE_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0x%06x 0x%08x\n"

	.no_dead_strip	_open_file_regdump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_file_regdump
_open_file_regdump:                     ; @open_file_regdump
	.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	x19, x1
	ldr	x22, [x0]
	ldr	w0, [x22]
	bl	_AR_SREV_9300_20_OR_LATER
	mov	w8, #8705
	mov	w9, #11585
	cmp	x0, #0
	csel	x27, x9, x8, eq
Lloh0:
	adrp	x8, _REGDUMP_LINE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REGDUMP_LINE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	orr	x9, xzr, #0x1
	madd	x0, x27, x8, x9
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_vmalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x0, x22
	bl	_ath9k_ps_wakeup
	mov	w28, #0
	mov	w20, #0
	mov	w19, #0
Lloh3:
	adrp	x23, _open_file_regdump.reg_hole_list@PAGE
Lloh4:
	add	x23, x23, _open_file_regdump.reg_hole_list@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x21, w28, uxtw #2
	ldr	w0, [x22]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	sub	x26, x8, w28, uxtw
	mov	x1, x24
	bl	_REG_READ
	mov	x4, x0
	mov	x0, x25
	mov	x1, x26
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x24
	bl	_scnprintf
	add	w28, w28, w0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	cmp	x27, w20, sxtw
	b.ls	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sbfiz	x8, x19, #3, #32
	ldr	w8, [x23, x8]
	lsl	w24, w20, #2
	cmp	w8, w24
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w19
	add	x8, x23, x8, lsl #3
	ldr	w8, [x8, #4]
	asr	w20, w8, #2
	add	w19, w19, #1
	b	LBB0_3
LBB0_6:
	mov	x0, x22
	bl	_ath9k_ps_restore
	mov	w0, #0
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	x21, [x8]
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @open_file_regdump.reg_hole_list
_open_file_regdump.reg_hole_list:
	.long	512                             ; 0x200
	.long	2044                            ; 0x7fc
	.long	3072                            ; 0xc00
	.long	4092                            ; 0xffc
	.long	8192                            ; 0x2000
	.long	16380                           ; 0x3ffc
	.long	16640                           ; 0x4100
	.long	28668                           ; 0x6ffc
	.long	28764                           ; 0x705c
	.long	32764                           ; 0x7ffc
	.space	8

	.comm	_REGDUMP_LINE_SIZE,8,3          ; @REGDUMP_LINE_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0x%06x 0x%08x\n"

	.no_dead_strip	_open_file_regdump
.subsections_via_symbols
