	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8400_read
_wm8400_read:                           ## @wm8400_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	leal	(%r14,%r12), %ebx
	decl	%ebx
	movq	8(%rdi), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	setg	%dil
	callq	_BUG_ON
	testl	%r14d, %r14d
	jle	LBB0_1
## %bb.4:
	leal	(%r14,%r12), %ecx
	movq	_reg_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r12d, %rsi
	movslq	%ecx, %rcx
	movq	%rsi, %rdx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rax,%rdx,8)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rdx
	cmpq	%rcx, %rdx
	jl	LBB0_5
	jmp	LBB0_2
LBB0_1:
	movslq	%r12d, %rsi
LBB0_2:
	shlq	$2, %rsi
	addq	8(%r15), %rsi
	shll	$2, %r14d
	movq	%r13, %rdi
	movl	%r14d, %edx
	callq	_memcpy
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_6:
	movl	16(%r15), %edi
	movl	%r12d, %esi
	movl	%r14d, %edx
	movq	%r13, %rcx
	callq	*(%r15)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.7:
	movl	%r14d, %r14d
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13,%rbx,4), %edi
	callq	_be16_to_cpu
	movl	%eax, (%r13,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg_data,8,3                   ## @reg_data
	.no_dead_strip	_wm8400_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8400_read
_wm8400_read:                           ; @wm8400_read
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	add	w23, w2, w1
	sub	w24, w23, #1
	ldr	x0, [x0, #8]
	bl	_ARRAY_SIZE
	cmp	w24, w0
	cset	w0, gt
	bl	_BUG_ON
	cmp	w20, #0
	b.le	LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _reg_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reg_data@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
	mov	x8, x22
	sxtw	x8, w8
	sxtw	x10, w23
	mov	x11, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x9, x11, lsl #3]
	cbnz	x12, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x11, x11, #1
	cmp	x11, x10
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	sxtw	x8, w22
LBB0_5:
	ldr	x9, [x21, #8]
	add	x1, x9, x8, lsl #2
	lsl	w2, w20, #2
	mov	x0, x19
	bl	_memcpy
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x21]
	ldr	w0, [x21, #16]
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	blr	x8
	cbz	w0, LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w20, w20
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	bl	_be16_to_cpu
	str	w0, [x19], #4
	subs	x20, x20, #1
	b.ne	LBB0_10
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_data,8,3                   ; @reg_data
	.no_dead_strip	_wm8400_read
.subsections_via_symbols
