	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_coex_cfg_gnt_fix
_rtw8822c_coex_cfg_gnt_fix:             ## @rtw8822c_coex_cfg_gnt_fix
	.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	32(%rdi), %rax
	cmpq	%rax, 24(%rdi)
	jne	LBB0_1
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %rbx
	movq	%rax, 24(%rdi)
	cmpl	$0, 40(%rdi)
	je	LBB0_2
LBB0_3:
	cmpq	$0, 16(%rbx)
	movl	$262144, %eax                   ## imm = 0x40000
	movl	$262177, %r14d                  ## imm = 0x40021
	cmovel	%eax, %r14d
	jmp	LBB0_4
LBB0_2:
	movl	$262177, %r14d                  ## imm = 0x40021
	cmpq	$0, 8(%rbx)
	je	LBB0_3
LBB0_4:
	cmpq	$0, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	$13, %edi
	callq	_BIT
	orl	%eax, %r14d
LBB0_6:
	movq	_RF_PATH_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	%r14d, %r8d
	callq	_rtw_write_rf
	movl	$6, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$7218, %esi                     ## imm = 0x1C32
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write8_mask
	movl	$4, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$7225, %esi                     ## imm = 0x1C39
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write8_mask
	movl	$4, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$7227, %esi                     ## imm = 0x1C3B
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write8_mask
	movl	$3, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$16736, %esi                    ## imm = 0x4160
	movl	%eax, %edx
	movl	$1, %ecx
	callq	_rtw_write8_mask
	movq	32(%rbx), %rax
	movq	_COEX_WLINK_5G@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.7:
	cmpq	$0, 8(%rbx)
	je	LBB0_8
LBB0_9:
	movl	40(%rbx), %r14d
	movl	$3, %edi
	callq	_BIT
	cmpl	$3, %r14d
	jl	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	movl	$6240, %esi                     ## imm = 0x1860
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write8_mask
	movl	$3, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$7335, %esi                     ## imm = 0x1CA7
	jmp	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	movl	$6240, %esi                     ## imm = 0x1860
LBB0_12:
	movl	%eax, %edx
	movl	$1, %ecx
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_rtw_write8_mask                ## TAILCALL
LBB0_8:
	cmpq	$0, (%rbx)
	je	LBB0_9
## %bb.14:
	movl	$3, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$6240, %esi                     ## imm = 0x1860
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_rtw_write8_mask
	cmpl	$3, 40(%rbx)
	jl	LBB0_16
## %bb.15:
	movl	$3, %edi
	callq	_BIT
	movq	%rbx, %rdi
	movl	$7335, %esi                     ## imm = 0x1CA7
	movl	%eax, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_RF_PATH_B,4,2                  ## @RF_PATH_B
	.comm	_COEX_WLINK_5G,8,3              ## @COEX_WLINK_5G
	.no_dead_strip	_rtw8822c_coex_cfg_gnt_fix
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_coex_cfg_gnt_fix
_rtw8822c_coex_cfg_gnt_fix:             ; @rtw8822c_coex_cfg_gnt_fix
	.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
	ldp	x9, x8, [x0, #24]
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x19, x0
	mov	w20, #33
	movk	w20, #4, lsl #16
	str	x8, [x0, #24]
	ldr	w8, [x0, #40]
	cbz	w8, LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	mov	w8, #262144
	csel	w20, w8, w20, eq
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
LBB0_5:
	ldr	x8, [x19]
	cbz	x8, LBB0_7
; %bb.6:
	mov	w0, #13
	bl	_BIT
	orr	w20, w0, w20
LBB0_7:
Lloh0:
	adrp	x8, _RF_PATH_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_PATH_B@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1048575
	mov	x4, x20
	bl	_rtw_write_rf
	mov	w0, #6
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #7218
	mov	w3, #1
	bl	_rtw_write8_mask
	mov	w0, #4
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #7225
	mov	w3, #0
	bl	_rtw_write8_mask
	mov	w0, #4
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #7227
	mov	w3, #1
	bl	_rtw_write8_mask
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #16736
	mov	w3, #1
	bl	_rtw_write8_mask
	ldr	x8, [x19, #32]
Lloh3:
	adrp	x9, _COEX_WLINK_5G@GOTPAGE
Lloh4:
	ldr	x9, [x9, _COEX_WLINK_5G@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_14
LBB0_9:
	ldr	w20, [x19, #40]
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	cmp	w20, #3
	b.lt	LBB0_11
; %bb.10:
	mov	x0, x19
	mov	w1, #6240
	mov	w3, #0
	bl	_rtw_write8_mask
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #7335
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	mov	w1, #6240
LBB0_12:
	mov	w3, #1
LBB0_13:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_rtw_write8_mask
LBB0_14:
	ldr	x8, [x19]
	cbz	x8, LBB0_9
; %bb.15:
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #6240
	mov	w3, #0
	bl	_rtw_write8_mask
	ldr	w8, [x19, #40]
	cmp	w8, #3
	b.lt	LBB0_1
; %bb.16:
	mov	w0, #3
	bl	_BIT
	mov	x2, x0
	mov	x0, x19
	mov	w1, #7335
	mov	w3, #0
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RF_PATH_B,4,2                  ; @RF_PATH_B
	.comm	_COEX_WLINK_5G,8,3              ; @COEX_WLINK_5G
	.no_dead_strip	_rtw8822c_coex_cfg_gnt_fix
.subsections_via_symbols
