	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function global_mmio_read
_global_mmio_read:                      ## @global_mmio_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, %rbx
	movq	%rcx, %r15
	movq	%rsi, %rdi
	callq	_kobj_to_dev
	movl	%eax, %edi
	callq	_to_afu
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	js	LBB0_5
## %bb.1:
	testq	%r14, %r14
	je	LBB0_5
## %bb.2:
	cmpq	%rbx, 8(%rcx)
	jle	LBB0_3
## %bb.4:
	addq	(%rcx), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memcpy_fromio
	movq	%r14, %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_global_mmio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function global_mmio_read
_global_mmio_read:                      ; @global_mmio_read
	.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	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x0, x1
	bl	_kobj_to_dev
	bl	_to_afu
	mov	x1, #0
	tbnz	x21, #63, LBB0_5
; %bb.1:
	cbz	x19, LBB0_5
; %bb.2:
	ldr	x8, [x0, #8]
	cmp	x8, x21
	b.le	LBB0_4
; %bb.3:
	ldr	x8, [x0]
	add	x1, x8, x21
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy_fromio
	mov	x1, x19
	b	LBB0_5
LBB0_4:
	mov	x1, #0
LBB0_5:
	mov	x0, x1
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_global_mmio_read
.subsections_via_symbols
