	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_coex_write_scbd            ## -- Begin function rtw_coex_write_scbd
	.p2align	4, 0x90
_rtw_coex_write_scbd:                   ## @rtw_coex_write_scbd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rcx
	cmpl	$0, 4(%rcx)
	je	LBB0_10
## %bb.1:
	movl	%edx, %eax
	movl	(%rdi), %r9d
	movl	%r9d, %edx
	orl	$2, %edx
	cmpl	$0, (%rcx)
	je	LBB0_2
LBB0_6:
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	orl	%esi, %edx
	cmpl	%r9d, %edx
	je	LBB0_10
	jmp	LBB0_11
LBB0_2:
	movq	_COEX_SCBD_FIX2M@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%esi, %r8d
	je	LBB0_6
## %bb.3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	notl	%r8d
	andl	%r8d, %edx
	cmpl	%r9d, %edx
	je	LBB0_10
	jmp	LBB0_11
LBB0_8:
	notl	%esi
	andl	%esi, %edx
	cmpl	%r9d, %edx
	jne	LBB0_11
LBB0_10:
	popq	%rbp
	retq
LBB0_5:
	orl	%r8d, %edx
	cmpl	%r9d, %edx
	je	LBB0_10
LBB0_11:
	movl	%edx, (%rdi)
	movq	_BIT_BT_INT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_REG_WIFI_BT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_rtw_write16                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COEX_SCBD_FIX2M,4,2            ## @COEX_SCBD_FIX2M
	.comm	_BIT_BT_INT_EN,4,2              ## @BIT_BT_INT_EN
	.comm	_REG_WIFI_BT_INFO,4,2           ## @REG_WIFI_BT_INFO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_coex_write_scbd            ; -- Begin function rtw_coex_write_scbd
	.p2align	2
_rtw_coex_write_scbd:                   ; @rtw_coex_write_scbd
	.cfi_startproc
; %bb.0:
	ldr	x10, [x0, #8]
	ldr	w8, [x10, #4]
	cbz	w8, LBB0_3
; %bb.1:
	ldr	w8, [x0]
	orr	w9, w8, #0x2
	ldr	w10, [x10]
	cbz	w10, LBB0_4
LBB0_2:
	bic	w10, w9, w1
	orr	w9, w9, w1
	cmp	w2, #0
	csel	w9, w10, w9, eq
	cmp	w9, w8
	b.ne	LBB0_6
LBB0_3:
	ret
LBB0_4:
Lloh0:
	adrp	x10, _COEX_SCBD_FIX2M@GOTPAGE
Lloh1:
	ldr	x10, [x10, _COEX_SCBD_FIX2M@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w1
	b.eq	LBB0_2
; %bb.5:
	orr	w11, w10, w9
	bic	w9, w9, w10
	cmp	w2, #0
	csel	w9, w11, w9, eq
	cmp	w9, w8
	b.eq	LBB0_3
LBB0_6:
	str	w9, [x0]
Lloh3:
	adrp	x8, _BIT_BT_INT_EN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BIT_BT_INT_EN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w2, w8, w9
Lloh6:
	adrp	x8, _REG_WIFI_BT_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_WIFI_BT_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	b	_rtw_write16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COEX_SCBD_FIX2M,4,2            ; @COEX_SCBD_FIX2M
	.comm	_BIT_BT_INT_EN,4,2              ; @BIT_BT_INT_EN
	.comm	_REG_WIFI_BT_INFO,4,2           ; @REG_WIFI_BT_INFO
.subsections_via_symbols
