	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm8400_write
_wm8400_write:                          ## @wm8400_write
	.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, %r13
	movl	%edx, %ebx
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	leal	(%rsi,%rbx), %r15d
	decl	%r15d
	movq	16(%rdi), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	setg	%dil
	callq	_BUG_ON
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movslq	-48(%rbp), %rbx                 ## 4-byte Folded Reload
	movl	-56(%rbp), %r12d                ## 4-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_reg_data@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax,%rbx,4)
	sete	%dil
	callq	_BUG_ON
	movl	(%r13,%r15,4), %eax
	movq	16(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	(%r13,%r15,4), %edi
	callq	_cpu_to_be16
	movl	%eax, (%r13,%r15,4)
	incq	%r15
	incq	%rbx
	cmpq	%r15, %r12
	jne	LBB0_2
LBB0_3:
	movl	8(%r14), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r13, %rcx
	callq	*(%r14)
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	cmovnel	%edx, %eax
	addq	$24, %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
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_wm8400_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm8400_write
_wm8400_write:                          ; @wm8400_write
	.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	x21, x1
	mov	x22, x0
	add	w8, w1, w2
	sub	w23, w8, #1
	ldr	x0, [x0, #16]
	bl	_ARRAY_SIZE
	cmp	w23, w0
	cset	w0, gt
	bl	_BUG_ON
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	sbfiz	x23, x21, #2, #32
Lloh0:
	adrp	x24, _reg_data@GOTPAGE
Lloh1:
	ldr	x24, [x24, _reg_data@GOTPAGEOFF]
	mov	x25, x19
	mov	w26, w20
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w8, [x8, x23]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x25]
	ldr	x9, [x22, #16]
	str	w8, [x9, x23]
	ldr	w0, [x25]
	bl	_cpu_to_be16
	str	w0, [x25], #4
	add	x23, x23, #4
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x22]
	ldr	w0, [x22, #8]
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	blr	x8
Lloh2:
	adrp	x8, _EIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w0, wzr, w8, eq
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_reg_data,8,3                   ; @reg_data
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_wm8400_write
.subsections_via_symbols
