	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a1ant_init_hw_config
_btc8821a1ant_init_hw_config:           ## @btc8821a1ant_init_hw_config
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	48(%rdi), %rdi
	movl	$0, -28(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_RT_TRACE
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$1072, %esi                     ## imm = 0x430
	callq	*40(%rbx)
	movq	_coex_dm@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	%eax, 12(%rcx)
	movq	%rbx, %rdi
	movl	$1076, %esi                     ## imm = 0x434
	callq	*40(%rbx)
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	movq	%rbx, %rdi
	movl	$1066, %esi                     ## imm = 0x42A
	callq	*32(%rbx)
	movq	(%r14), %rcx
	movl	%eax, 4(%rcx)
	movq	%rbx, %rdi
	movl	$1110, %esi                     ## imm = 0x456
	callq	*(%rbx)
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
LBB0_3:
	movq	%rbx, %rdi
	movl	$1936, %esi                     ## imm = 0x790
	callq	*(%rbx)
                                        ## kill: def $eax killed $eax def $rax
	andl	$192, %eax
	leal	5(%rax), %edx
	movq	%rbx, %rdi
	movl	$1936, %esi                     ## imm = 0x790
	callq	*16(%rbx)
	movq	_BTC_GET_BL_WIFI_UNDER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*24(%rbx)
	cmpl	$0, -28(%rbp)
	jne	LBB0_4
## %bb.5:
	movq	_BTC_ANT_PATH_PTA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_BTC_ANT_PATH_BT@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_set_ant_path
	movq	_FORCE_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_btc8821a1ant_coex_table_with_type
	movq	%rbx, %rdi
	movl	$1902, %esi                     ## imm = 0x76E
	movl	$12, %edx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$1912, %esi                     ## imm = 0x778
	movl	$3, %edx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$64, %esi
	movl	$32, %edx
	movl	$1, %ecx
	callq	*8(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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], 1Ant Init HW Config!!\n"

	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ## @BTC_GET_BL_WIFI_UNDER_5G
	.comm	_BTC_ANT_PATH_BT,4,2            ## @BTC_ANT_PATH_BT
	.comm	_BTC_ANT_PATH_PTA,4,2           ## @BTC_ANT_PATH_PTA
	.comm	_FORCE_EXEC,4,2                 ## @FORCE_EXEC
	.no_dead_strip	_btc8821a1ant_init_hw_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a1ant_init_hw_config
_btc8821a1ant_init_hw_config:           ; @btc8821a1ant_init_hw_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #48]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	cbnz	w21, LBB0_4
; %bb.1:
	cbz	w20, LBB0_3
; %bb.2:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1072
	blr	x8
Lloh8:
	adrp	x20, _coex_dm@GOTPAGE
Lloh9:
	ldr	x20, [x20, _coex_dm@GOTPAGEOFF]
	ldr	x8, [x20]
	str	w0, [x8, #12]
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1076
	blr	x8
	ldr	x8, [x20]
	str	w0, [x8, #8]
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #1066
	blr	x8
	ldr	x8, [x20]
	str	w0, [x8, #4]
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1110
	blr	x8
	ldr	x8, [x20]
	str	w0, [x8]
LBB0_3:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1936
	blr	x8
	and	w8, w0, #0xc0
	mov	w9, #5
	orr	w2, w8, w9
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1936
	blr	x8
	ldr	x8, [x19, #24]
Lloh10:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGE
Lloh11:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
Lloh13:
	adrp	x8, _BTC_ANT_PATH_PTA@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BTC_ANT_PATH_PTA@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh15:
	adrp	x10, _BTC_ANT_PATH_BT@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BTC_ANT_PATH_BT@GOTPAGEOFF]
	cmp	w9, #0
	csel	x8, x8, x10, eq
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	bl	_btc8821a1ant_set_ant_path
Lloh17:
	adrp	x8, _FORCE_EXEC@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FORCE_EXEC@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_btc8821a1ant_coex_table_with_type
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1902
	mov	w2, #12
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1912
	mov	w2, #3
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #64
	mov	w2, #32
	mov	w3, #1
	blr	x8
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.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], 1Ant Init HW Config!!\n"

	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ; @BTC_GET_BL_WIFI_UNDER_5G
	.comm	_BTC_ANT_PATH_BT,4,2            ; @BTC_ANT_PATH_BT
	.comm	_BTC_ANT_PATH_PTA,4,2           ; @BTC_ANT_PATH_PTA
	.comm	_FORCE_EXEC,4,2                 ; @FORCE_EXEC
	.no_dead_strip	_btc8821a1ant_init_hw_config
.subsections_via_symbols
