	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_regread
_ath9k_regread:                         ## @ath9k_regread
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_ath9k_hw_common
	movq	%rax, %r15
	movq	(%rax), %rbx
	movl	%r14d, %edi
	callq	_cpu_to_be32
	movl	%eax, -28(%rbp)
	movl	(%rbx), %edi
	movq	_WMI_REG_READ_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$100, (%rsp)
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %r8
	movl	$4, %ecx
	movl	$4, %r9d
	callq	_ath9k_wmi_cmd
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_WMI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_ath_dbg
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movl	-32(%rbp), %edi
	callq	_be32_to_cpu
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_REG_READ_CMDID,4,2         ## @WMI_REG_READ_CMDID
	.comm	_WMI,4,2                        ## @WMI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"REGISTER READ FAILED: (0x%04x, %d)\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ath9k_regread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_regread
_ath9k_regread:                         ; @ath9k_regread
	.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, x1
	bl	_ath9k_hw_common
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x19
	bl	_cpu_to_be32
	str	w0, [sp, #8]
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _WMI_REG_READ_CMDID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_REG_READ_CMDID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #8
	add	x4, sp, #12
	mov	w3, #4
	mov	w5, #4
	mov	w6, #100
	bl	_ath9k_wmi_cmd
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _WMI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WMI@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	mov	x4, x21
	bl	_ath_dbg
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	ldr	w0, [sp, #12]
	bl	_be32_to_cpu
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_REG_READ_CMDID,4,2         ; @WMI_REG_READ_CMDID
	.comm	_WMI,4,2                        ; @WMI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"REGISTER READ FAILED: (0x%04x, %d)\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ath9k_regread
.subsections_via_symbols
