	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ltecoex_reg_write              ## -- Begin function ltecoex_reg_write
	.p2align	4, 0x90
_ltecoex_reg_write:                     ## @ltecoex_reg_write
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_LTECOEX_ACCESS_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_LTECOEX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %r14d
	movl	$1, %ecx
	callq	_check_hw_ready
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_LTECOEX_WRITE_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_rtw_write32
	movl	(%r13), %esi
	orl	$-1072758784, %r15d             ## imm = 0xC00F0000
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_rtw_write32
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LTECOEX_ACCESS_CTRL,4,2        ## @LTECOEX_ACCESS_CTRL
	.comm	_LTECOEX_READY,4,2              ## @LTECOEX_READY
	.comm	_LTECOEX_WRITE_DATA,4,2         ## @LTECOEX_WRITE_DATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ltecoex_reg_write              ; -- Begin function ltecoex_reg_write
	.p2align	2
_ltecoex_reg_write:                     ; @ltecoex_reg_write
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _LTECOEX_ACCESS_CTRL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LTECOEX_ACCESS_CTRL@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _LTECOEX_READY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LTECOEX_READY@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_check_hw_ready
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _LTECOEX_WRITE_DATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LTECOEX_WRITE_DATA@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_rtw_write32
	ldr	w1, [x22]
	mov	w8, #-1072758784
	orr	w2, w20, w8
	mov	x0, x19
	bl	_rtw_write32
	mov	w0, #1
LBB0_2:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_LTECOEX_ACCESS_CTRL,4,2        ; @LTECOEX_ACCESS_CTRL
	.comm	_LTECOEX_READY,4,2              ; @LTECOEX_READY
	.comm	_LTECOEX_WRITE_DATA,4,2         ; @LTECOEX_WRITE_DATA
.subsections_via_symbols
