	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mc13xxx_spi_write
_mc13xxx_spi_write:                     ## @mc13xxx_spi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	callq	_to_spi_device
	cmpq	$4, %rbx
	jne	LBB0_5
## %bb.1:
	movq	%rax, %r14
	movb	(%r15), %al
	movq	_MC13783_AUDIO_CODEC@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_3
## %bb.2:
	movq	_MC13783_AUDIO_DAC@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_4
LBB0_3:
	movl	$4, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_spi_write
LBB0_4:
	movl	$4, %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spi_write                      ## TAILCALL
LBB0_5:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.comm	_MC13783_AUDIO_CODEC,1,0        ## @MC13783_AUDIO_CODEC
	.comm	_MC13783_AUDIO_DAC,1,0          ## @MC13783_AUDIO_DAC
	.no_dead_strip	_mc13xxx_spi_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mc13xxx_spi_write
_mc13xxx_spi_write:                     ; @mc13xxx_spi_write
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
	bl	_to_spi_device
	cmp	x21, #4
	b.ne	LBB0_4
; %bb.1:
	mov	x20, x0
	ldrb	w8, [x19]
Lloh0:
	adrp	x9, _MC13783_AUDIO_CODEC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MC13783_AUDIO_CODEC@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh2:
	adrp	x10, _MC13783_AUDIO_DAC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MC13783_AUDIO_DAC@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	bl	_spi_write
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #4
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spi_write
LBB0_4:
Lloh4:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.comm	_MC13783_AUDIO_CODEC,1,0        ; @MC13783_AUDIO_CODEC
	.comm	_MC13783_AUDIO_DAC,1,0          ; @MC13783_AUDIO_DAC
	.no_dead_strip	_mc13xxx_spi_write
.subsections_via_symbols
