	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8350_phys_read
_wm8350_phys_read:                      ## @wm8350_phys_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %rbx
	leal	(%r12,%r12), %r15d
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, %rcx
	callq	*(%rbx)
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_3
## %bb.1:
	leal	(%r12,%r13), %eax
	movslq	%r13d, %rbx
	movslq	%eax, %r13
	movq	_wm8350_reg_io_map@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r14)
	movq	(%r15), %rcx
	andl	(%rcx,%rbx,4), %eax
	movl	%eax, (%r14)
	incq	%rbx
	addq	$4, %r14
	cmpq	%r13, %rbx
	jl	LBB0_2
LBB0_3:
	movl	%r12d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dump
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %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	"volatile read\n"

	.comm	_wm8350_reg_io_map,8,3          ## @wm8350_reg_io_map
	.no_dead_strip	_wm8350_phys_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8350_phys_read
_wm8350_phys_read:                      ; @wm8350_phys_read
	.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, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	lsl	w23, w2, #1
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x21]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	blr	x8
	mov	x21, x0
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	add	w8, w20, w22
	sxtw	x22, w22
	sxtw	x23, w8
Lloh2:
	adrp	x24, _wm8350_reg_io_map@GOTPAGE
Lloh3:
	ldr	x24, [x24, _wm8350_reg_io_map@GOTPAGEOFF]
	mov	x25, x19
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	bl	_be16_to_cpu
	str	w0, [x25]
	ldr	x8, [x24]
	ldr	w8, [x8, x22, lsl #2]
	and	w8, w8, w0
	str	w8, [x25], #4
	add	x22, x22, #1
	cmp	x22, x23
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_dump
	mov	x0, x21
	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 AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"volatile read\n"

	.comm	_wm8350_reg_io_map,8,3          ; @wm8350_reg_io_map
	.no_dead_strip	_wm8350_phys_read
.subsections_via_symbols
