	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5764_write_raw
_ad5764_write_raw:                      ## @ad5764_write_raw
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	cmpq	$130, %r8
	je	LBB0_6
## %bb.1:
	cmpq	$129, %r8
	je	LBB0_7
## %bb.2:
	cmpq	$128, %r8
	jne	LBB0_5
## %bb.3:
	movb	(%rsi), %cl
	movl	$1, %eax
	shll	%cl, %eax
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.4:
	cmpl	%ebx, %eax
	jle	LBB0_5
## %bb.8:
	movb	4(%rsi), %cl
	shll	%cl, %ebx
	jmp	LBB0_9
LBB0_6:
	movsbl	%bl, %eax
	cmpl	%ebx, %eax
	je	LBB0_9
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	leal	-32(%rbx), %eax
	cmpl	$-65, %eax
	jbe	LBB0_5
LBB0_9:
	movq	%rsi, %rdi
	movq	%r8, %rsi
	callq	_ad5764_chan_info_to_reg
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ad5764_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ad5764_write_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5764_write_raw
_ad5764_write_raw:                      ; @ad5764_write_raw
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x0
	cmp	x4, #130
	b.eq	LBB0_6
; %bb.1:
	cmp	x4, #129
	b.eq	LBB0_8
; %bb.2:
	cmp	x4, #128
	b.ne	LBB0_7
; %bb.3:
	tbnz	w19, #31, LBB0_7
; %bb.4:
	ldr	w8, [x1]
	mov	w9, #1
	lsl	w8, w9, w8
	cmp	w8, w19
	b.le	LBB0_7
; %bb.5:
	ldr	w8, [x1, #4]
	lsl	w19, w19, w8
	b	LBB0_9
LBB0_6:
	cmp	w19, w19, sxtb
	b.eq	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	sub	w8, w19, #32
	cmn	w8, #65
	b.ls	LBB0_7
LBB0_9:
	mov	x0, x1
	mov	x1, x4
	bl	_ad5764_chan_info_to_reg
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ad5764_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ad5764_write_raw
.subsections_via_symbols
