	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mma9551_write_config_words     ## -- Begin function mma9551_write_config_words
	.p2align	4, 0x90
_mma9551_write_config_words:            ## @mma9551_write_config_words
	.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	%r8, %rbx
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, -56(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MMA9551_MAX_MAILBOX_DATA_REGS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	decl	%ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	decl	%eax
	sarl	%eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	callq	_ARRAY_SIZE
	cmpl	%r13d, %eax
	jge	LBB0_1
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_4
## %bb.2:
	movl	%r13d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%r15,4), %edi
	callq	_cpu_to_be16
	movl	%eax, (%r14,%r15,4)
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_3
LBB0_4:
	movq	_MMA9551_CMD_WRITE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	shll	$2, %r13d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movq	%r14, %r8
	movl	%r13d, %r9d
	pushq	$0
	pushq	$0
	callq	_mma9551_transfer
	addq	$16, %rsp
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_8
## %bb.6:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MMA9551_MAX_MAILBOX_DATA_REGS,4,2 ## @MMA9551_MAX_MAILBOX_DATA_REGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid buffer size %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MMA9551_CMD_WRITE_CONFIG,4,2   ## @MMA9551_CMD_WRITE_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mma9551_write_config_words     ; -- Begin function mma9551_write_config_words
	.p2align	2
_mma9551_write_config_words:            ; @mma9551_write_config_words
	.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
	sub	sp, sp, #16
	mov	x23, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MMA9551_MAX_MAILBOX_DATA_REGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MMA9551_MAX_MAILBOX_DATA_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w9, w8, #1
	cmp	w9, #0
	csel	w8, w8, w9, lt
	asr	w8, w8, #1
	lsl	x9, x8, #2
	add	x8, x9, #15
	and	x8, x8, #0x7fffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x24, x9, x8
	mov	sp, x24
	mov	x0, x24
	bl	_ARRAY_SIZE
	cmp	w0, w20
	b.ge	LBB0_2
; %bb.1:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x20
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	cmp	w20, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w25, w20
	mov	x26, x24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23], #4
	bl	_cpu_to_be16
	str	w0, [x26], #4
	subs	x25, x25, #1
	b.ne	LBB0_4
LBB0_5:
Lloh13:
	adrp	x8, _MMA9551_CMD_WRITE_CONFIG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MMA9551_CMD_WRITE_CONFIG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	lsl	w5, w20, #2
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	mov	x4, x24
	mov	x6, #0
	mov	w7, #0
	bl	_mma9551_transfer
LBB0_6:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	sub	sp, x29, #64
	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
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MMA9551_MAX_MAILBOX_DATA_REGS,4,2 ; @MMA9551_MAX_MAILBOX_DATA_REGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid buffer size %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MMA9551_CMD_WRITE_CONFIG,4,2   ; @MMA9551_CMD_WRITE_CONFIG
.subsections_via_symbols
