	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_cs8427_send_corudata
_snd_cs8427_send_corudata:              ## @snd_cs8427_send_corudata
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdx
	xorl	%eax, %eax
	testl	%esi, %esi
	sete	%al
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	8(%rdx,%rax,8), %r12
	xorl	%r14d, %r14d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	xorl	%eax, %eax
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_snd_cs8427_select_corudata
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-84(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	testl	%r13d, %r13d
	movl	%ebx, %r13d
	je	LBB0_6
## %bb.4:
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	_CS8427_REG_AUTOINC@GOTPCREL(%rip), %rax
	movq	_CS8427_REG_CORU_DATABUF@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	orb	(%rax), %cl
	movb	%cl, -80(%rbp)
	testl	%r13d, %r13d
	jle	LBB0_9
## %bb.7:
	movl	%r13d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rbx), %edi
	callq	_swapbits
	movb	%al, -79(%rbp,%rbx)
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_8
LBB0_9:
	incl	%r13d
	leaq	-80(%rbp), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_snd_i2c_sendbytes
	movl	$1, %r14d
	cmpl	%r13d, %eax
	je	LBB0_11
## %bb.10:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_11
LBB0_2:
	movl	%eax, %r14d
	jmp	LBB0_11
LBB0_5:
	movq	_CS8427_UBMMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rax
	movq	_CS8427_REG_UDATABUF@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	andl	(%rax,%rsi,4), %edx
	movl	%edx, (%rax,%rsi,4)
	movq	_CS8427_UBMZEROS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_CS8427_EFTUI@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rax,%rsi,4)
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_snd_cs8427_reg_write
	movl	%eax, %r14d
	sarl	$31, %r14d
	andl	%eax, %r14d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r14d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CS8427_UBMMASK,4,2             ## @CS8427_UBMMASK
	.comm	_CS8427_REG_UDATABUF,8,3        ## @CS8427_REG_UDATABUF
	.comm	_CS8427_UBMZEROS,4,2            ## @CS8427_UBMZEROS
	.comm	_CS8427_EFTUI,4,2               ## @CS8427_EFTUI
	.comm	_CS8427_REG_AUTOINC,1,0         ## @CS8427_REG_AUTOINC
	.comm	_CS8427_REG_CORU_DATABUF,1,0    ## @CS8427_REG_CORU_DATABUF
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_snd_cs8427_send_corudata
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_cs8427_send_corudata
_snd_cs8427_send_corudata:              ; @snd_cs8427_send_corudata
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldr	x24, [x0]
	cmp	w1, #0
	mov	w8, #8
	mov	w9, #16
	csel	x8, x9, x8, eq
	ldr	x22, [x24, x8]
	mov	x8, x3
	stp	x2, x8, [sp]
	mov	x0, x22
	bl	_memcmp
	cbz	x0, LBB0_11
; %bb.1:
	mov	x0, x19
	mov	x1, x23
	bl	_snd_cs8427_select_corudata
	tbnz	w0, #31, LBB0_11
; %bb.2:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	cbz	w23, LBB0_4
; %bb.3:
	add	x23, sp, #24
	add	x0, sp, #24
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	stp	x23, x20, [sp]
	mov	x0, x22
	bl	_memcmp
	cbz	x0, LBB0_10
LBB0_4:
Lloh3:
	adrp	x8, _CS8427_REG_AUTOINC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CS8427_REG_AUTOINC@GOTPAGEOFF]
	ldrb	w8, [x8]
Lloh5:
	adrp	x9, _CS8427_REG_CORU_DATABUF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CS8427_REG_CORU_DATABUF@GOTPAGEOFF]
	ldrb	w9, [x9]
	orr	w8, w9, w8
	strb	w8, [sp, #24]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w22, w20
	add	x8, sp, #24
	add	x23, x8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x21], #1
	bl	_swapbits
	strb	w0, [x23], #1
	subs	x22, x22, #1
	b.ne	LBB0_6
LBB0_7:
	add	w20, w20, #1
	add	x1, sp, #24
	mov	x0, x19
	mov	x2, x20
	bl	_snd_i2c_sendbytes
	cmp	w0, w20
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_11
LBB0_9:
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _CS8427_UBMMASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CS8427_UBMMASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _CS8427_REG_UDATABUF@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CS8427_REG_UDATABUF@GOTPAGEOFF]
	ldr	x10, [x24]
Lloh15:
	ldr	x1, [x9]
	lsl	x9, x1, #2
	ldr	w11, [x10, x9]
	bic	w8, w11, w8
	str	w8, [x10, x9]
Lloh16:
	adrp	x11, _CS8427_UBMZEROS@GOTPAGE
Lloh17:
	ldr	x11, [x11, _CS8427_UBMZEROS@GOTPAGEOFF]
Lloh18:
	adrp	x12, _CS8427_EFTUI@GOTPAGE
Lloh19:
	ldr	x12, [x12, _CS8427_EFTUI@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	ldr	w12, [x12]
	orr	w8, w11, w8
	orr	w2, w8, w12
	str	w2, [x10, x9]
	mov	x0, x19
	bl	_snd_cs8427_reg_write
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_11:
	ldr	x8, [sp, #56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh20
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CS8427_UBMMASK,4,2             ; @CS8427_UBMMASK
	.comm	_CS8427_REG_UDATABUF,8,3        ; @CS8427_REG_UDATABUF
	.comm	_CS8427_UBMZEROS,4,2            ; @CS8427_UBMZEROS
	.comm	_CS8427_EFTUI,4,2               ; @CS8427_EFTUI
	.comm	_CS8427_REG_AUTOINC,1,0         ; @CS8427_REG_AUTOINC
	.comm	_CS8427_REG_CORU_DATABUF,1,0    ; @CS8427_REG_CORU_DATABUF
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_snd_cs8427_send_corudata
.subsections_via_symbols
