	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl8366_readRegister
_rtl8366_readRegister:                  ## @rtl8366_readRegister
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_DBG
	leaq	-20(%rbp), %rsi
	movl	%ebx, %edi
	callq	_smi_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_2:
	movl	-20(%rbp), %esi
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	%esi, (%r14)
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	callq	_DBG
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtl8366: read register=%#04x, data="

L_.str.2:                               ## @.str.2
	.asciz	"%#04x\n"

L_str:                                  ## @str
	.asciz	"\nrtl8366 smi read failed!"

	.no_dead_strip	_rtl8366_readRegister
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl8366_readRegister
_rtl8366_readRegister:                  ; @rtl8366_readRegister
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DBG
	add	x1, sp, #12
	mov	x0, x20
	bl	_smi_read
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_str@PAGE
Lloh3:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #-1
	b	LBB0_5
LBB0_2:
	ldr	w1, [sp, #12]
	cbz	x19, LBB0_4
; %bb.3:
	str	w1, [x19]
LBB0_4:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DBG
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtl8366: read register=%#04x, data="

l_.str.2:                               ; @.str.2
	.asciz	"%#04x\n"

l_str:                                  ; @str
	.asciz	"\nrtl8366 smi read failed!"

	.no_dead_strip	_rtl8366_readRegister
.subsections_via_symbols
