	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_coex_set_ant_path
_rtw_coex_set_ant_path:                 ## @rtw_coex_set_ant_path
	.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
	movl	%edx, %ebx
	movq	%rdi, %r14
	testl	%esi, %esi
	jne	LBB0_2
## %bb.1:
	cmpl	%ebx, (%r14)
	je	LBB0_16
LBB0_2:
	movl	%ebx, (%r14)
	movq	%r14, %rdi
	callq	_rtw_coex_check_rfk
	addl	$-128, %ebx
	cmpl	$7, %ebx
	ja	LBB0_18
## %bb.3:
	movq	_COEX_SWITCH_TO_NOCARE@GOTPCREL(%rip), %r15
	movq	_COEX_SWITCH_CTRL_BY_BT@GOTPCREL(%rip), %r12
	xorl	%esi, %esi
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_4:
	movq	_COEX_GNT_SET_SW_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_bt
	movq	_COEX_GNT_SET_SW_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_wl
	movq	_COEX_SWITCH_TO_WLG@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_5:
	xorl	%esi, %esi
	cmpl	$0, 4(%r14)
	setne	%sil
	movq	_COEX_SWITCH_TO_BT@GOTPCREL(%rip), %r15
	movq	_COEX_SWITCH_CTRL_BY_BBSW@GOTPCREL(%rip), %r12
	jmp	LBB0_13
LBB0_6:
	cmpl	$0, 4(%r14)
	movq	_COEX_GNT_SET_SW_HIGH@GOTPCREL(%rip), %rbx
	movq	_COEX_GNT_SET_SW_LOW@GOTPCREL(%rip), %rax
	movq	%rax, %rcx
	cmoveq	%rbx, %rcx
	movl	(%rcx), %esi
	cmoveq	%rax, %rbx
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_bt
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_wl
	movq	_COEX_SWITCH_TO_BT@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_7:
	movq	_COEX_GNT_SET_SW_HIGH@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_bt
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_wl
	movq	_COEX_SWITCH_TO_WLA@GOTPCREL(%rip), %r15
	jmp	LBB0_11
LBB0_8:
	movq	_COEX_GNT_SET_HW_PTA@GOTPCREL(%rip), %rbx
	jmp	LBB0_10
LBB0_9:
	movq	_COEX_GNT_SET_SW_HIGH@GOTPCREL(%rip), %rbx
LBB0_10:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_bt
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_wl
	movq	_COEX_SWITCH_TO_WLG_BT@GOTPCREL(%rip), %r15
LBB0_11:
	movq	_COEX_SWITCH_CTRL_BY_BBSW@GOTPCREL(%rip), %r12
LBB0_12:
	movl	$1, %esi
LBB0_13:
	movq	%r14, %rdi
	callq	_rtw_coex_coex_ctrl_owner
	movl	(%r12), %esi
	movq	_COEX_SWITCH_CTRL_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %esi
	jge	LBB0_16
## %bb.14:
	movl	(%r15), %edx
	movq	_COEX_SWITCH_TO_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_coex_set_ant_switch        ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_COEX_GNT_SET_HW_PTA@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_bt
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_coex_set_gnt_wl
	movq	_COEX_SWITCH_CTRL_BY_PTA@GOTPCREL(%rip), %r12
	jmp	LBB0_12
LBB0_18:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WARN                           ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_13, LBB0_13-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_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_17
	.end_data_region
                                        ## -- End function
	.comm	_COEX_SWITCH_CTRL_MAX,4,2       ## @COEX_SWITCH_CTRL_MAX
	.comm	_COEX_SWITCH_TO_MAX,4,2         ## @COEX_SWITCH_TO_MAX
	.comm	_COEX_SWITCH_CTRL_BY_BBSW,4,2   ## @COEX_SWITCH_CTRL_BY_BBSW
	.comm	_COEX_SWITCH_TO_BT,4,2          ## @COEX_SWITCH_TO_BT
	.comm	_COEX_GNT_SET_SW_LOW,4,2        ## @COEX_GNT_SET_SW_LOW
	.comm	_COEX_GNT_SET_SW_HIGH,4,2       ## @COEX_GNT_SET_SW_HIGH
	.comm	_COEX_SWITCH_TO_WLG,4,2         ## @COEX_SWITCH_TO_WLG
	.comm	_COEX_SWITCH_CTRL_BY_BT,4,2     ## @COEX_SWITCH_CTRL_BY_BT
	.comm	_COEX_SWITCH_TO_NOCARE,4,2      ## @COEX_SWITCH_TO_NOCARE
	.comm	_COEX_GNT_SET_HW_PTA,4,2        ## @COEX_GNT_SET_HW_PTA
	.comm	_COEX_SWITCH_CTRL_BY_PTA,4,2    ## @COEX_SWITCH_CTRL_BY_PTA
	.comm	_COEX_SWITCH_TO_WLA,4,2         ## @COEX_SWITCH_TO_WLA
	.comm	_COEX_SWITCH_TO_WLG_BT,4,2      ## @COEX_SWITCH_TO_WLG_BT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown phase when setting antenna path\n"

	.no_dead_strip	_rtw_coex_set_ant_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_coex_set_ant_path
_rtw_coex_set_ant_path:                 ; @rtw_coex_set_ant_path
	.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	x20, x2
	mov	x19, x0
	cbnz	w1, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, w20
	b.eq	LBB0_14
LBB0_2:
	str	w20, [x19]
	mov	x0, x19
	bl	_rtw_coex_check_rfk
	sub	w8, w20, #128
	cmp	w8, #7
	b.hi	LBB0_17
; %bb.3:
	mov	w1, #0
Lloh0:
	adrp	x20, _COEX_SWITCH_TO_NOCARE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _COEX_SWITCH_TO_NOCARE@GOTPAGEOFF]
Lloh2:
	adrp	x21, _COEX_SWITCH_CTRL_BY_BT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _COEX_SWITCH_CTRL_BY_BT@GOTPAGEOFF]
Lloh4:
	adrp	x9, lJTI0_0@PAGE
Lloh5:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh6:
	adrp	x8, _COEX_GNT_SET_SW_LOW@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COEX_GNT_SET_SW_LOW@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_bt
Lloh9:
	adrp	x8, _COEX_GNT_SET_SW_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COEX_GNT_SET_SW_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_wl
Lloh12:
	adrp	x20, _COEX_SWITCH_TO_WLG@GOTPAGE
Lloh13:
	ldr	x20, [x20, _COEX_SWITCH_TO_WLG@GOTPAGEOFF]
	b	LBB0_11
LBB0_5:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	cset	w1, ne
Lloh14:
	adrp	x20, _COEX_SWITCH_TO_BT@GOTPAGE
Lloh15:
	ldr	x20, [x20, _COEX_SWITCH_TO_BT@GOTPAGEOFF]
Lloh16:
	adrp	x21, _COEX_SWITCH_CTRL_BY_BBSW@GOTPAGE
Lloh17:
	ldr	x21, [x21, _COEX_SWITCH_CTRL_BY_BBSW@GOTPAGEOFF]
	b	LBB0_13
LBB0_6:
Lloh18:
	adrp	x8, _COEX_GNT_SET_SW_HIGH@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COEX_GNT_SET_SW_HIGH@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh20:
	adrp	x10, _COEX_GNT_SET_SW_LOW@GOTPAGE
Lloh21:
	ldr	x10, [x10, _COEX_GNT_SET_SW_LOW@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x8, x10, eq
	ldr	w1, [x9]
	csel	x20, x10, x8, eq
	mov	x0, x19
	bl	_rtw_coex_set_gnt_bt
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_wl
Lloh22:
	adrp	x20, _COEX_SWITCH_TO_BT@GOTPAGE
Lloh23:
	ldr	x20, [x20, _COEX_SWITCH_TO_BT@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
Lloh24:
	adrp	x20, _COEX_GNT_SET_SW_HIGH@GOTPAGE
Lloh25:
	ldr	x20, [x20, _COEX_GNT_SET_SW_HIGH@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_bt
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_wl
Lloh26:
	adrp	x20, _COEX_SWITCH_TO_WLA@GOTPAGE
Lloh27:
	ldr	x20, [x20, _COEX_SWITCH_TO_WLA@GOTPAGEOFF]
	b	LBB0_11
LBB0_8:
Lloh28:
	adrp	x20, _COEX_GNT_SET_HW_PTA@GOTPAGE
Lloh29:
	ldr	x20, [x20, _COEX_GNT_SET_HW_PTA@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh30:
	adrp	x20, _COEX_GNT_SET_SW_HIGH@GOTPAGE
Lloh31:
	ldr	x20, [x20, _COEX_GNT_SET_SW_HIGH@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_bt
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_wl
Lloh32:
	adrp	x20, _COEX_SWITCH_TO_WLG_BT@GOTPAGE
Lloh33:
	ldr	x20, [x20, _COEX_SWITCH_TO_WLG_BT@GOTPAGEOFF]
LBB0_11:
Lloh34:
	adrp	x21, _COEX_SWITCH_CTRL_BY_BBSW@GOTPAGE
Lloh35:
	ldr	x21, [x21, _COEX_SWITCH_CTRL_BY_BBSW@GOTPAGEOFF]
LBB0_12:
	mov	w1, #1
LBB0_13:
	mov	x0, x19
	bl	_rtw_coex_coex_ctrl_owner
	ldr	w2, [x20]
	ldr	w1, [x21]
Lloh36:
	adrp	x8, _COEX_SWITCH_CTRL_MAX@GOTPAGE
Lloh37:
	ldr	x8, [x8, _COEX_SWITCH_CTRL_MAX@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x9, _COEX_SWITCH_TO_MAX@GOTPAGE
Lloh40:
	ldr	x9, [x9, _COEX_SWITCH_TO_MAX@GOTPAGEOFF]
Lloh41:
	ldr	w9, [x9]
	cmp	w1, w8
	ccmp	w2, w9, #0, lt
	b.lt	LBB0_15
LBB0_14:
	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_15:
	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	_rtw_coex_set_ant_switch
LBB0_16:
Lloh42:
	adrp	x20, _COEX_GNT_SET_HW_PTA@GOTPAGE
Lloh43:
	ldr	x20, [x20, _COEX_GNT_SET_HW_PTA@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_bt
	ldr	w1, [x20]
	mov	x0, x19
	bl	_rtw_coex_set_gnt_wl
Lloh44:
	adrp	x20, _COEX_SWITCH_TO_NOCARE@GOTPAGE
Lloh45:
	ldr	x20, [x20, _COEX_SWITCH_TO_NOCARE@GOTPAGEOFF]
Lloh46:
	adrp	x21, _COEX_SWITCH_CTRL_BY_PTA@GOTPAGE
Lloh47:
	ldr	x21, [x21, _COEX_SWITCH_CTRL_BY_PTA@GOTPAGEOFF]
	b	LBB0_12
LBB0_17:
Lloh48:
	adrp	x1, l_.str@PAGE
Lloh49:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	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	_WARN
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_5-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_16-LBB0_4)>>2
                                        ; -- End function
	.comm	_COEX_SWITCH_CTRL_MAX,4,2       ; @COEX_SWITCH_CTRL_MAX
	.comm	_COEX_SWITCH_TO_MAX,4,2         ; @COEX_SWITCH_TO_MAX
	.comm	_COEX_SWITCH_CTRL_BY_BBSW,4,2   ; @COEX_SWITCH_CTRL_BY_BBSW
	.comm	_COEX_SWITCH_TO_BT,4,2          ; @COEX_SWITCH_TO_BT
	.comm	_COEX_GNT_SET_SW_LOW,4,2        ; @COEX_GNT_SET_SW_LOW
	.comm	_COEX_GNT_SET_SW_HIGH,4,2       ; @COEX_GNT_SET_SW_HIGH
	.comm	_COEX_SWITCH_TO_WLG,4,2         ; @COEX_SWITCH_TO_WLG
	.comm	_COEX_SWITCH_CTRL_BY_BT,4,2     ; @COEX_SWITCH_CTRL_BY_BT
	.comm	_COEX_SWITCH_TO_NOCARE,4,2      ; @COEX_SWITCH_TO_NOCARE
	.comm	_COEX_GNT_SET_HW_PTA,4,2        ; @COEX_GNT_SET_HW_PTA
	.comm	_COEX_SWITCH_CTRL_BY_PTA,4,2    ; @COEX_SWITCH_CTRL_BY_PTA
	.comm	_COEX_SWITCH_TO_WLA,4,2         ; @COEX_SWITCH_TO_WLA
	.comm	_COEX_SWITCH_TO_WLG_BT,4,2      ; @COEX_SWITCH_TO_WLG_BT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown phase when setting antenna path\n"

	.no_dead_strip	_rtw_coex_set_ant_path
.subsections_via_symbols
