	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_init_desc
_ath9k_hw_init_desc:                    ## @ath9k_hw_init_desc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_AR_SREV_9100
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_AR_CFG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	_AR_CFG_SWRB@GOTPCREL(%rip), %rcx
	movq	_AR_CFG_SWTB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_AR_CFG_SWRG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%edx, %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.2:
	movq	_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	jmp	LBB0_3
LBB0_5:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_ATH_USB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movq	%rbx, %rdi
	callq	_AR_SREV_9271
	movq	_AR_CFG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	_AR_CFG_SWRB@GOTPCREL(%rip), %rax
	movq	_AR_CFG_SWTB@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_4:
	movq	_INIT_CONFIG_STATUS@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_REG_WRITE
	movq	_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
LBB0_3:
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ath_dbg                        ## TAILCALL
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_AR_CFG_SWTD@GOTPCREL(%rip), %rax
	movq	_AR_CFG_SWRD@GOTPCREL(%rip), %rcx
LBB0_8:
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_REG_WRITE                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_CFG,4,2                     ## @AR_CFG
	.comm	_AR_CFG_SWRB,4,2                ## @AR_CFG_SWRB
	.comm	_AR_CFG_SWTB,4,2                ## @AR_CFG_SWTB
	.comm	_AR_CFG_SWRG,4,2                ## @AR_CFG_SWRG
	.comm	_RESET,4,2                      ## @RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CFG Byte Swap Set 0x%x\n"

	.comm	_INIT_CONFIG_STATUS,4,2         ## @INIT_CONFIG_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"Setting CFG 0x%x\n"

	.comm	_ATH_USB,8,3                    ## @ATH_USB
	.comm	_AR_CFG_SWTD,4,2                ## @AR_CFG_SWTD
	.comm	_AR_CFG_SWRD,4,2                ## @AR_CFG_SWRD
	.no_dead_strip	_ath9k_hw_init_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_init_desc
_ath9k_hw_init_desc:                    ; @ath9k_hw_init_desc
	.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
	bl	_ath9k_hw_common
	mov	x20, x0
	mov	x0, x19
	bl	_AR_SREV_9100
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x22, _AR_CFG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AR_CFG@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
Lloh2:
	adrp	x8, _AR_CFG_SWRB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_CFG_SWRB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AR_CFG_SWTB@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AR_CFG_SWTB@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh8:
	adrp	x9, _AR_CFG_SWRG@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AR_CFG_SWRG@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w9, w8, w9
	tst	w9, w0
	b.eq	LBB0_6
; %bb.2:
	mov	x3, x0
Lloh11:
	adrp	x8, _RESET@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	b	LBB0_7
LBB0_3:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh16:
	adrp	x9, _ATH_USB@GOTPAGE
Lloh17:
	ldr	x9, [x9, _ATH_USB@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
	mov	x0, x19
	bl	_AR_SREV_9271
Lloh19:
	adrp	x8, _AR_CFG@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_CFG@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	cbz	x0, LBB0_9
; %bb.5:
Lloh22:
	adrp	x8, _AR_CFG_SWRB@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR_CFG_SWRB@GOTPAGEOFF]
Lloh24:
	adrp	x9, _AR_CFG_SWTB@GOTPAGE
Lloh25:
	ldr	x9, [x9, _AR_CFG_SWTB@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
Lloh26:
	adrp	x9, _INIT_CONFIG_STATUS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _INIT_CONFIG_STATUS@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_WRITE
Lloh29:
	adrp	x8, _RESET@GOTPAGE
Lloh30:
	ldr	x8, [x8, _RESET@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_REG_READ
	mov	x3, x0
Lloh32:
	adrp	x2, l_.str.1@PAGE
Lloh33:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x1, x21
LBB0_7:
	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
	b	_ath_dbg
LBB0_8:
	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_9:
Lloh34:
	adrp	x8, _AR_CFG_SWTD@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR_CFG_SWTD@GOTPAGEOFF]
Lloh36:
	adrp	x9, _AR_CFG_SWRD@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AR_CFG_SWRD@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	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
	b	_REG_WRITE
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_CFG,4,2                     ; @AR_CFG
	.comm	_AR_CFG_SWRB,4,2                ; @AR_CFG_SWRB
	.comm	_AR_CFG_SWTB,4,2                ; @AR_CFG_SWTB
	.comm	_AR_CFG_SWRG,4,2                ; @AR_CFG_SWRG
	.comm	_RESET,4,2                      ; @RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CFG Byte Swap Set 0x%x\n"

	.comm	_INIT_CONFIG_STATUS,4,2         ; @INIT_CONFIG_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"Setting CFG 0x%x\n"

	.comm	_ATH_USB,8,3                    ; @ATH_USB
	.comm	_AR_CFG_SWTD,4,2                ; @AR_CFG_SWTD
	.comm	_AR_CFG_SWRD,4,2                ; @AR_CFG_SWRD
	.no_dead_strip	_ath9k_hw_init_desc
.subsections_via_symbols
