	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_mci_osla_setup
_ar9003_mci_osla_setup:                 ## @ar9003_mci_osla_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_6
## %bb.1:
	movq	_AR_MCI_SCHD_TABLE_2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_MCI_SCHD_TABLE_2_HW_BASED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_MCI_SCHD_TABLE_2_MEM_BASED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
	movq	%rbx, %rdi
	callq	_AR_SREV_9565
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_AR_MCI_MISC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_MCI_MISC_HW_FIX_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_REG_RMW_FIELD
LBB0_3:
	movl	(%rbx), %edi
	movq	_ATH_MCI_CONFIG_DISABLE_AGGR_THRESH@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	testl	%edi, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	_ATH_MCI_CONFIG_AGGR_THRESH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_MS
	movq	_AR_BTCOEX_CTRL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_AR_BTCOEX_CTRL_AGGR_THRESH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %ecx
	callq	_REG_RMW_FIELD
	movl	$1, %ecx
LBB0_5:
	movq	_AR_BTCOEX_CTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_REG_RMW_FIELD
	movl	(%r14), %esi
	movq	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_RMW_FIELD                  ## TAILCALL
LBB0_6:
	movq	_AR_BTCOEX_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_REG_CLR_BIT                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_BTCOEX_CTRL,4,2             ## @AR_BTCOEX_CTRL
	.comm	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN,4,2 ## @AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN
	.comm	_AR_MCI_SCHD_TABLE_2,4,2        ## @AR_MCI_SCHD_TABLE_2
	.comm	_AR_MCI_SCHD_TABLE_2_HW_BASED,4,2 ## @AR_MCI_SCHD_TABLE_2_HW_BASED
	.comm	_AR_MCI_SCHD_TABLE_2_MEM_BASED,4,2 ## @AR_MCI_SCHD_TABLE_2_MEM_BASED
	.comm	_AR_MCI_MISC,4,2                ## @AR_MCI_MISC
	.comm	_AR_MCI_MISC_HW_FIX_EN,4,2      ## @AR_MCI_MISC_HW_FIX_EN
	.comm	_ATH_MCI_CONFIG_DISABLE_AGGR_THRESH,4,2 ## @ATH_MCI_CONFIG_DISABLE_AGGR_THRESH
	.comm	_ATH_MCI_CONFIG_AGGR_THRESH,4,2 ## @ATH_MCI_CONFIG_AGGR_THRESH
	.comm	_AR_BTCOEX_CTRL_AGGR_THRESH,4,2 ## @AR_BTCOEX_CTRL_AGGR_THRESH
	.comm	_AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN,4,2 ## @AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN
	.no_dead_strip	_ar9003_mci_osla_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_mci_osla_setup
_ar9003_mci_osla_setup:                 ; @ar9003_mci_osla_setup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cbz	w1, LBB0_5
; %bb.1:
Lloh0:
	adrp	x20, _AR_MCI_SCHD_TABLE_2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _AR_MCI_SCHD_TABLE_2@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _AR_MCI_SCHD_TABLE_2_HW_BASED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AR_MCI_SCHD_TABLE_2_HW_BASED@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _AR_MCI_SCHD_TABLE_2_MEM_BASED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR_MCI_SCHD_TABLE_2_MEM_BASED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
	mov	x0, x19
	bl	_AR_SREV_9565
	cbz	x0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _AR_MCI_MISC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AR_MCI_MISC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _AR_MCI_MISC_HW_FIX_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AR_MCI_MISC_HW_FIX_EN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	bl	_REG_RMW_FIELD
LBB0_3:
	ldr	w0, [x19]
Lloh14:
	adrp	x8, _ATH_MCI_CONFIG_DISABLE_AGGR_THRESH@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ATH_MCI_CONFIG_DISABLE_AGGR_THRESH@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x20, _AR_BTCOEX_CTRL@GOTPAGE
Lloh18:
	ldr	x20, [x20, _AR_BTCOEX_CTRL@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.4:
	mov	w3, #0
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _AR_BTCOEX_CTRL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _AR_BTCOEX_CTRL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
Lloh22:
	adrp	x8, _AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_CLR_BIT
LBB0_6:
Lloh25:
	adrp	x8, _ATH_MCI_CONFIG_AGGR_THRESH@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ATH_MCI_CONFIG_AGGR_THRESH@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_MS
	mov	x3, x0
	ldr	w1, [x20]
Lloh28:
	adrp	x8, _AR_BTCOEX_CTRL_AGGR_THRESH@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_AGGR_THRESH@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_RMW_FIELD
	mov	w3, #1
LBB0_7:
	ldr	w1, [x20]
Lloh31:
	adrp	x8, _AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_REG_RMW_FIELD
Lloh34:
	adrp	x8, _AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh36:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_REG_RMW_FIELD
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_BTCOEX_CTRL,4,2             ; @AR_BTCOEX_CTRL
	.comm	_AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN,4,2 ; @AR_BTCOEX_CTRL_ONE_STEP_LOOK_AHEAD_EN
	.comm	_AR_MCI_SCHD_TABLE_2,4,2        ; @AR_MCI_SCHD_TABLE_2
	.comm	_AR_MCI_SCHD_TABLE_2_HW_BASED,4,2 ; @AR_MCI_SCHD_TABLE_2_HW_BASED
	.comm	_AR_MCI_SCHD_TABLE_2_MEM_BASED,4,2 ; @AR_MCI_SCHD_TABLE_2_MEM_BASED
	.comm	_AR_MCI_MISC,4,2                ; @AR_MCI_MISC
	.comm	_AR_MCI_MISC_HW_FIX_EN,4,2      ; @AR_MCI_MISC_HW_FIX_EN
	.comm	_ATH_MCI_CONFIG_DISABLE_AGGR_THRESH,4,2 ; @ATH_MCI_CONFIG_DISABLE_AGGR_THRESH
	.comm	_ATH_MCI_CONFIG_AGGR_THRESH,4,2 ; @ATH_MCI_CONFIG_AGGR_THRESH
	.comm	_AR_BTCOEX_CTRL_AGGR_THRESH,4,2 ; @AR_BTCOEX_CTRL_AGGR_THRESH
	.comm	_AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN,4,2 ; @AR_BTCOEX_CTRL_TIME_TO_NEXT_BT_THRESH_EN
	.no_dead_strip	_ar9003_mci_osla_setup
.subsections_via_symbols
