	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apl_rd_reg
_apl_rd_reg:                            ## @apl_rd_reg
	.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
	movq	%r8, %r12
	movq	%rcx, %r13
	movl	%edx, %ebx
	movl	%esi, %r15d
	movl	%edi, %r14d
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movq	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%r9, %rdx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_edac_dbg
	movl	$0, %eax
	cmpq	$4, %r12
	je	LBB0_4
## %bb.1:
	cmpq	$8, %r12
	jne	LBB0_2
## %bb.3:
	leal	4(%r15), %esi
	leaq	4(%r13), %rcx
	movl	%r14d, %edi
	movl	%ebx, %edx
	callq	__apl_rd_reg
LBB0_4:
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movq	%r13, %rcx
	movl	%eax, %r14d
	callq	__apl_rd_reg
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_KERN_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	cmpq	$8, %r12
	movl	$0, %ecx
	jne	LBB0_6
## %bb.5:
	movl	4(%r13), %ecx
LBB0_6:
	movl	(%r13), %r8d
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %r9d
	callq	_pnd2_printk
	jmp	LBB0_7
LBB0_2:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read %s port=%x off=%x op=%x\n"

	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
L_.str.1:                               ## @.str.1
	.asciz	"%s=%x%08x ret=%d\n"

	.no_dead_strip	_apl_rd_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apl_rd_reg
_apl_rd_reg:                            ; @apl_rd_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x5
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x2, x5
	mov	x3, x25
	mov	x4, x24
	mov	x5, x23
	bl	_edac_dbg
	mov	w22, #0
	cmp	x21, #4
	b.eq	LBB0_3
; %bb.1:
	cmp	x21, #8
	b.ne	LBB0_7
; %bb.2:
	add	w1, w24, #4
	add	x3, x20, #4
	mov	x0, x25
	mov	x2, x23
	bl	__apl_rd_reg
	mov	x22, x0
LBB0_3:
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	mov	x3, x20
	bl	__apl_rd_reg
	orr	w22, w0, w22
Lloh2:
	adrp	x8, _KERN_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KERN_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	cmp	x21, #8
	b.ne	LBB0_5
; %bb.4:
	ldr	w3, [x20, #4]
	b	LBB0_6
LBB0_5:
	mov	w3, #0
LBB0_6:
	ldr	w4, [x20]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	mov	x5, x22
	bl	_pnd2_printk
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read %s port=%x off=%x op=%x\n"

	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
l_.str.1:                               ; @.str.1
	.asciz	"%s=%x%08x ret=%d\n"

	.no_dead_strip	_apl_rd_reg
.subsections_via_symbols
