	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max5481_write_cmd
_max5481_write_cmd:                     ## @max5481_write_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	movl	%eax, (%rsi)
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movl	$1, %edx
	popq	%rbp
	jmp	_spi_write                      ## TAILCALL
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.2:
	movl	%edx, %eax
	sarl	$2, %eax
	movl	%eax, 4(%rsi)
	shll	$6, %edx
	movzbl	%dl, %eax
	movl	%eax, 8(%rsi)
	movl	$3, %edx
	popq	%rbp
	jmp	_spi_write                      ## TAILCALL
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_max5481_write_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max5481_write_cmd
_max5481_write_cmd:                     ; @max5481_write_cmd
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	mov	x9, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x9]
	str	w8, [x1]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w2, #1
	b	_spi_write
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.3:
	asr	w8, w2, #2
	ubfiz	w9, w2, #6, #2
	stp	w8, w9, [x1, #4]
	mov	w2, #3
	b	_spi_write
LBB0_4:
Lloh0:
	adrp	x8, _EIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_max5481_write_cmd
.subsections_via_symbols
