	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a2ant_update_bt_link_info
_btc8821a2ant_update_bt_link_info:      ## @btc8821a2ant_update_bt_link_info
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	*(%rdi)
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%rbx)
	movq	24(%rax), %rsi
	movq	%rsi, 48(%rbx)
	movq	16(%rax), %rdx
	movq	%rdx, 40(%rbx)
	movl	4(%rax), %ecx
	movl	%ecx, 12(%rbx)
	movq	8(%rax), %rax
	movq	%rax, 32(%rbx)
	cmpl	$0, -12(%rbp)
	je	LBB0_2
## %bb.1:
	movabsq	$4294967297, %rcx               ## imm = 0x100000001
	movq	%rcx, 8(%rbx)
	movl	$1, %ecx
LBB0_2:
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.3:
	testq	%rdx, %rdx
	je	LBB0_11
LBB0_4:
	xorl	%ecx, %ecx
LBB0_5:
	movl	%ecx, 16(%rbx)
	movq	$0, 20(%rbx)
	jmp	LBB0_9
LBB0_6:
	movl	$0, 16(%rbx)
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.7:
	testl	%ecx, %ecx
	sete	%cl
	testq	%rax, %rax
	sete	%al
	andb	%cl, %al
	movzbl	%al, %eax
	movl	%eax, 20(%rbx)
LBB0_8:
	movl	$0, 24(%rbx)
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, 28(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_11:
	testl	%ecx, %ecx
	jne	LBB0_4
## %bb.12:
	movl	$1, %ecx
	testq	%rax, %rax
	je	LBB0_5
	jmp	LBB0_4
LBB0_13:
	movl	$0, 20(%rbx)
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.14:
	testq	%rax, %rax
	jne	LBB0_8
## %bb.17:
	movl	$1, 24(%rbx)
	jmp	LBB0_9
LBB0_16:
	movl	$0, 24(%rbx)
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_10
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ## @BTC_GET_BL_HS_OPERATION
	.comm	_coex_sta,8,3                   ## @coex_sta
	.no_dead_strip	_btc8821a2ant_update_bt_link_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8821a2ant_update_bt_link_info
_btc8821a2ant_update_bt_link_info:      ; @btc8821a2ant_update_bt_link_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
Lloh3:
	adrp	x8, _coex_sta@GOTPAGE
Lloh4:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x11, [x8, #24]
	str	x11, [x19, #48]
	ldp	w10, w9, [x8]
	stp	w10, w9, [x19, #8]
	ldp	x8, x10, [x8, #8]
	stp	x8, x10, [x19, #32]
	ldr	w12, [sp, #12]
	cbz	w12, LBB0_2
; %bb.1:
	movi.2s	v0, #1
	str	d0, [x19, #8]
	mov	w9, #1
LBB0_2:
	cbz	x11, LBB0_6
; %bb.3:
	cmp	x10, #0
	ccmp	w9, #0, #0, eq
	ccmp	x8, #0, #0, eq
	b.eq	LBB0_13
; %bb.4:
	mov	w8, #0
LBB0_5:
	stp	wzr, wzr, [x19, #20]
	str	w8, [x19, #16]
	b	LBB0_8
LBB0_6:
	str	wzr, [x19, #16]
	cbz	x10, LBB0_10
; %bb.7:
	cmp	w9, #0
	ccmp	x8, #0, #0, eq
	cset	w8, eq
	stp	w8, wzr, [x19, #20]
LBB0_8:
	mov	w8, #0
LBB0_9:
	str	w8, [x19, #28]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	str	wzr, [x19, #20]
	cbz	w9, LBB0_14
; %bb.11:
	cbz	x8, LBB0_16
; %bb.12:
	str	wzr, [x19, #24]
	b	LBB0_8
LBB0_13:
	mov	w8, #1
	b	LBB0_5
LBB0_14:
	str	wzr, [x19, #24]
	cbz	x8, LBB0_8
; %bb.15:
	mov	w8, #1
	b	LBB0_9
LBB0_16:
	mov	w8, #1
	str	w8, [x19, #24]
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ; @BTC_GET_BL_HS_OPERATION
	.comm	_coex_sta,8,3                   ; @coex_sta
	.no_dead_strip	_btc8821a2ant_update_bt_link_info
.subsections_via_symbols
