	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_mem
_read_mem:                              ## @read_mem
	.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
	movq	(%rdi), %rdi
	movl	$1274868, %esi                  ## imm = 0x1373F4
	callq	_nvkm_rd32
	andl	$15, %eax
	cmpl	$1, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.3:
	movl	$1253376, %esi                  ## imm = 0x132000
	jmp	LBB0_4
LBB0_1:
	movl	$1253408, %esi                  ## imm = 0x132020
LBB0_4:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_read_pll                       ## TAILCALL
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_mem
_read_mem:                              ; @read_mem
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w20, #8192
	movk	w20, #19, lsl #16
	ldr	x0, [x0]
	mov	w1, #29684
	movk	w1, #19, lsl #16
	bl	_nvkm_rd32
	and	w8, w0, #0xf
	cmp	w8, #1
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	orr	w20, w20, #0x20
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_read_pll
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_mem
.subsections_via_symbols
