	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_read_revisions
_ath9k_hw_read_revisions:               ## @ath9k_hw_read_revisions
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	*%rcx
	movl	%eax, 12(%rbx)
LBB0_2:
	movl	16(%rbx), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_14
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	_AR_SREV_VERSION_9561@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_AR_SREV_VERSION_9550@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_AR_SREV_VERSION_9531@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_AR_SREV_VERSION_9340@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_9:
	movl	$1, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_AR_SREV_VERSION_9330@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	$1, %r14d
	cmpq	$0, (%rbx)
	jne	LBB0_10
## %bb.12:
	movq	_AR_SREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_AR_SREV_REVISION2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MS
	movl	%eax, 12(%rbx)
	jmp	LBB0_10
LBB0_13:
	movq	_AR_SREV_VERSION_9100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_14:
	movq	_AR_SREV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	%eax, %r14d
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	callq	_ath9k_hw_common
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_ath_err
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_16:
	movq	_AR_SREV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r14d, %r15d
	cmpl	$255, %r15d
	jne	LBB0_20
## %bb.17:
	movq	_AR_SREV_VERSION2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_AR_SREV_TYPE2_S@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movl	%eax, 20(%rbx)
	movq	_AR_SREV_REVISION2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_MS
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	callq	_AR_SREV_9462
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	%rbx, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	je	LBB0_25
LBB0_19:
	movl	$1, 8(%rbx)
	jmp	LBB0_9
LBB0_20:
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	20(%rbx), %eax
	jmp	LBB0_23
LBB0_22:
	movq	_AR_SREV_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_MS
	movl	%eax, 20(%rbx)
LBB0_23:
	movq	_AR_SREV_REVISION@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	movl	%r15d, 12(%rbx)
	movq	_AR_SREV_VERSION_5416_PCIE@GOTPCREL(%rip), %rcx
	movl	$1, %r14d
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.24:
	movl	$1, 8(%rbx)
	jmp	LBB0_10
LBB0_25:
	movq	_AR_SREV_TYPE2_HOST_MODE@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	andl	(%rax), %r14d
	sete	%cl
	movl	%ecx, 8(%rbx)
	jmp	LBB0_9
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_11
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_AR_SREV_VERSION_9100,4,2       ## @AR_SREV_VERSION_9100
	.comm	_AR_SREV_VERSION_9330,4,2       ## @AR_SREV_VERSION_9330
	.comm	_AR_SREV,4,2                    ## @AR_SREV
	.comm	_AR_SREV_REVISION2,4,2          ## @AR_SREV_REVISION2
	.comm	_AR_SREV_VERSION_9340,4,2       ## @AR_SREV_VERSION_9340
	.comm	_AR_SREV_VERSION_9550,4,2       ## @AR_SREV_VERSION_9550
	.comm	_AR_SREV_VERSION_9531,4,2       ## @AR_SREV_VERSION_9531
	.comm	_AR_SREV_VERSION_9561,4,2       ## @AR_SREV_VERSION_9561
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read SREV register"

	.comm	_AR_SREV_ID,4,2                 ## @AR_SREV_ID
	.comm	_AR_SREV_VERSION2,4,2           ## @AR_SREV_VERSION2
	.comm	_AR_SREV_TYPE2_S,4,2            ## @AR_SREV_TYPE2_S
	.comm	_AR_SREV_TYPE2_HOST_MODE,4,2    ## @AR_SREV_TYPE2_HOST_MODE
	.comm	_AR_SREV_VERSION,4,2            ## @AR_SREV_VERSION
	.comm	_AR_SREV_REVISION,4,2           ## @AR_SREV_REVISION
	.comm	_AR_SREV_VERSION_5416_PCIE,4,2  ## @AR_SREV_VERSION_5416_PCIE
	.no_dead_strip	_ath9k_hw_read_revisions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_read_revisions
_ath9k_hw_read_revisions:               ; @ath9k_hw_read_revisions
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.1:
	blr	x8
	str	w0, [x19, #12]
LBB0_2:
	ldr	w8, [x19, #16]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_14
; %bb.3:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh2:
	adrp	x8, _AR_SREV_VERSION_9561@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_SREV_VERSION_9561@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
Lloh4:
	adrp	x8, _AR_SREV_VERSION_9550@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AR_SREV_VERSION_9550@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x8, _AR_SREV_VERSION_9531@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AR_SREV_VERSION_9531@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _AR_SREV_VERSION_9340@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_SREV_VERSION_9340@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_9:
	mov	w0, #1
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh10:
	adrp	x8, _AR_SREV_VERSION_9330@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR_SREV_VERSION_9330@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x8, [x19]
	cbnz	x8, LBB0_9
; %bb.12:
Lloh13:
	adrp	x8, _AR_SREV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AR_SREV@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
Lloh16:
	adrp	x8, _AR_SREV_REVISION2@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AR_SREV_REVISION2@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_MS
	str	w0, [x19, #12]
	b	LBB0_9
LBB0_13:
Lloh19:
	adrp	x8, _AR_SREV_VERSION_9100@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_SREV_VERSION_9100@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_14:
Lloh22:
	adrp	x8, _AR_SREV@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR_SREV@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
Lloh25:
	adrp	x8, _EIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_ath9k_hw_common
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ath_err
	mov	w0, #0
	b	LBB0_10
LBB0_16:
	mov	x20, x0
Lloh30:
	adrp	x8, _AR_SREV_ID@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AR_SREV_ID@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	and	w21, w8, w0
	cmp	w21, #255
	b.ne	LBB0_20
; %bb.17:
Lloh33:
	adrp	x8, _AR_SREV_VERSION2@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AR_SREV_VERSION2@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh36:
	adrp	x9, _AR_SREV_TYPE2_S@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AR_SREV_TYPE2_S@GOTPAGEOFF]
Lloh38:
	ldr	w9, [x9]
	asr	w8, w8, w9
	str	w8, [x19, #20]
Lloh39:
	adrp	x8, _AR_SREV_REVISION2@GOTPAGE
Lloh40:
	ldr	x8, [x8, _AR_SREV_REVISION2@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_MS
	str	w0, [x19, #12]
	mov	x0, x19
	bl	_AR_SREV_9462
	cbnz	x0, LBB0_19
; %bb.18:
	mov	x0, x19
	bl	_AR_SREV_9565
	cbz	x0, LBB0_25
LBB0_19:
	mov	w0, #1
	b	LBB0_24
LBB0_20:
	mov	x0, x19
	bl	_AR_SREV_9100
	cbz	w0, LBB0_22
; %bb.21:
	ldr	w8, [x19, #20]
	b	LBB0_23
LBB0_22:
Lloh42:
	adrp	x8, _AR_SREV_VERSION@GOTPAGE
Lloh43:
	ldr	x8, [x8, _AR_SREV_VERSION@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_MS
	mov	x8, x0
	str	w8, [x19, #20]
LBB0_23:
Lloh45:
	adrp	x9, _AR_SREV_REVISION@GOTPAGE
Lloh46:
	ldr	x9, [x9, _AR_SREV_REVISION@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	and	w9, w9, w21
	str	w9, [x19, #12]
Lloh48:
	adrp	x9, _AR_SREV_VERSION_5416_PCIE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _AR_SREV_VERSION_5416_PCIE@GOTPAGEOFF]
Lloh50:
	ldr	w9, [x9]
	mov	w0, #1
	cmp	w8, w9
	b.ne	LBB0_10
LBB0_24:
	str	w0, [x19, #8]
	b	LBB0_10
LBB0_25:
Lloh51:
	adrp	x8, _AR_SREV_TYPE2_HOST_MODE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AR_SREV_TYPE2_HOST_MODE@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	tst	w8, w20
	cset	w8, eq
	str	w8, [x19, #8]
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
                                        ; -- End function
	.comm	_AR_SREV_VERSION_9100,4,2       ; @AR_SREV_VERSION_9100
	.comm	_AR_SREV_VERSION_9330,4,2       ; @AR_SREV_VERSION_9330
	.comm	_AR_SREV,4,2                    ; @AR_SREV
	.comm	_AR_SREV_REVISION2,4,2          ; @AR_SREV_REVISION2
	.comm	_AR_SREV_VERSION_9340,4,2       ; @AR_SREV_VERSION_9340
	.comm	_AR_SREV_VERSION_9550,4,2       ; @AR_SREV_VERSION_9550
	.comm	_AR_SREV_VERSION_9531,4,2       ; @AR_SREV_VERSION_9531
	.comm	_AR_SREV_VERSION_9561,4,2       ; @AR_SREV_VERSION_9561
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read SREV register"

	.comm	_AR_SREV_ID,4,2                 ; @AR_SREV_ID
	.comm	_AR_SREV_VERSION2,4,2           ; @AR_SREV_VERSION2
	.comm	_AR_SREV_TYPE2_S,4,2            ; @AR_SREV_TYPE2_S
	.comm	_AR_SREV_TYPE2_HOST_MODE,4,2    ; @AR_SREV_TYPE2_HOST_MODE
	.comm	_AR_SREV_VERSION,4,2            ; @AR_SREV_VERSION
	.comm	_AR_SREV_REVISION,4,2           ; @AR_SREV_REVISION
	.comm	_AR_SREV_VERSION_5416_PCIE,4,2  ; @AR_SREV_VERSION_5416_PCIE
	.no_dead_strip	_ath9k_hw_read_revisions
.subsections_via_symbols
