	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc8723b1ant_set_fw_ps_tdma
_halbtc8723b1ant_set_fw_ps_tdma:        ## @halbtc8723b1ant_set_fw_ps_tdma
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, -88(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$0, -84(%rbp)
	movq	_BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdx
	callq	*8(%rdi)
	cmpl	$0, -84(%rbp)
	je	LBB0_4
## %bb.1:
	movq	_BIT4@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_BIT5@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_BIT4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%r12d, %eax
	movq	_BIT5@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, %eax
	orl	%ecx, %r15d
	movq	_BIT6@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %r15d
	movl	%eax, %r12d
LBB0_4:
	movl	%r12d, -80(%rbp)
	movl	%r14d, -76(%rbp)
	movl	%r13d, -72(%rbp)
	movl	-88(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, -68(%rbp)
	movl	%r15d, -64(%rbp)
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	%r12d, (%rax)
	movl	%r14d, 4(%rax)
	movl	%r13d, 8(%rax)
	movl	%ecx, 12(%rax)
	movl	%r15d, 16(%rax)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-80(%rbp), %r8d
	movl	-76(%rbp), %eax
	shll	$24, %eax
	movl	-72(%rbp), %ecx
	shll	$16, %ecx
	orl	%eax, %ecx
	movl	-68(%rbp), %r9d
	shll	$8, %r9d
	orl	%ecx, %r9d
	orl	-64(%rbp), %r9d
	leaq	L_.str.1(%rip), %rcx
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_RT_TRACE
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$96, %esi
	movl	$5, %edx
	callq	*(%rbx)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,2 ## @BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.comm	_BIT4,4,2                       ## @BIT4
	.comm	_BIT5,4,2                       ## @BIT5
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BTCoex], FW for 1Ant AP mode\n"

	.comm	_BIT6,4,2                       ## @BIT6
	.comm	_coex_dm,8,3                    ## @coex_dm
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], PS-TDMA H2C cmd =0x%x%08x\n"

	.no_dead_strip	_halbtc8723b1ant_set_fw_ps_tdma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halbtc8723b1ant_set_fw_ps_tdma
_halbtc8723b1ant_set_fw_ps_tdma:        ; @halbtc8723b1ant_set_fw_ps_tdma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	wzr, [sp, #16]
	ldp	x8, x20, [x0, #8]
Lloh3:
	adrp	x9, _BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_AP_MODE_ENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	add	x2, sp, #16
	blr	x8
	ldr	w8, [sp, #16]
Lloh6:
	adrp	x26, _COMP_BT_COEXIST@GOTPAGE
Lloh7:
	ldr	x26, [x26, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh8:
	adrp	x27, _DBG_LOUD@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DBG_LOUD@GOTPAGEOFF]
	cbz	w8, LBB0_4
; %bb.1:
Lloh10:
	adrp	x28, _BIT4@GOTPAGE
Lloh11:
	ldr	x28, [x28, _BIT4@GOTPAGEOFF]
	ldr	w8, [x28]
	tst	w8, w25
	b.eq	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _BIT5@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIT5@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w25
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x26]
	ldr	w2, [x27]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	w8, [x28]
	bic	w8, w25, w8
Lloh17:
	adrp	x9, _BIT5@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BIT5@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w25, w8, w9
	orr	w8, w9, w22
Lloh20:
	adrp	x9, _BIT6@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BIT6@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w22, w8, w9
LBB0_4:
	stp	w25, w24, [sp, #20]
	stp	w23, w21, [sp, #28]
	str	w22, [sp, #36]
Lloh23:
	adrp	x8, _coex_dm@GOTPAGE
Lloh24:
	ldr	x8, [x8, _coex_dm@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	x8, [x8]
	stp	w25, w24, [x8]
	stp	w23, w21, [x8, #8]
	str	w22, [x8, #16]
	ldr	w1, [x26]
	ldr	w2, [x27]
	ldp	w8, w9, [sp, #28]
	lsl	w8, w8, #16
	ldp	w11, w10, [sp, #20]
	orr	w8, w8, w10, lsl #24
	orr	w8, w8, w9, lsl #8
	ldr	w9, [sp, #36]
	orr	w8, w8, w9
	stp	x11, x8, [sp]
Lloh26:
	adrp	x3, l_.str.1@PAGE
Lloh27:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
	add	x3, sp, #20
	mov	x0, x19
	mov	w1, #96
	mov	w2, #5
	blr	x8
	ldr	x8, [sp, #40]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_GET_BL_WIFI_AP_MODE_ENABLE,4,2 ; @BTC_GET_BL_WIFI_AP_MODE_ENABLE
	.comm	_BIT4,4,2                       ; @BIT4
	.comm	_BIT5,4,2                       ; @BIT5
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BTCoex], FW for 1Ant AP mode\n"

	.comm	_BIT6,4,2                       ; @BIT6
	.comm	_coex_dm,8,3                    ; @coex_dm
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], PS-TDMA H2C cmd =0x%x%08x\n"

	.no_dead_strip	_halbtc8723b1ant_set_fw_ps_tdma
.subsections_via_symbols
