	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function lm36274_init
LCPI0_0:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_lm36274_init:                          ## @lm36274_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %r9d
	testl	%r9d, %r9d
	jle	LBB0_12
## %bb.1:
	movq	8(%rdi), %rcx
	cmpl	$8, %r9d
	jae	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_12:
	movl	20(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_3:
	movl	%r9d, %esi
	andl	$-8, %esi
	leaq	-8(%rsi), %rax
	movq	%rax, %r8
	shrq	$3, %r8
	incq	%r8
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r8, %rax
	andq	$-2, %rax
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [1065353216,1065353216,1065353216,1065353216]
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdx,4), %xmm3
	movdqu	16(%rcx,%rdx,4), %xmm4
	movdqu	32(%rcx,%rdx,4), %xmm5
	movdqu	48(%rcx,%rdx,4), %xmm6
	pslld	$23, %xmm3
	paddd	%xmm2, %xmm3
	cvttps2dq	%xmm3, %xmm3
	por	%xmm0, %xmm3
	pslld	$23, %xmm4
	paddd	%xmm2, %xmm4
	cvttps2dq	%xmm4, %xmm4
	por	%xmm1, %xmm4
	pslld	$23, %xmm5
	paddd	%xmm2, %xmm5
	cvttps2dq	%xmm5, %xmm0
	por	%xmm3, %xmm0
	pslld	$23, %xmm6
	paddd	%xmm2, %xmm6
	cvttps2dq	%xmm6, %xmm1
	por	%xmm4, %xmm1
	addq	$16, %rdx
	addq	$-2, %rax
	jne	LBB0_6
## %bb.7:
	testb	$1, %r8b
	je	LBB0_9
LBB0_8:
	movdqu	(%rcx,%rdx,4), %xmm2
	movdqu	16(%rcx,%rdx,4), %xmm3
	pslld	$23, %xmm2
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm4, %xmm2
	cvttps2dq	%xmm2, %xmm2
	por	%xmm2, %xmm0
	pslld	$23, %xmm3
	paddd	%xmm4, %xmm3
	cvttps2dq	%xmm3, %xmm2
	por	%xmm2, %xmm1
LBB0_9:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edx
	cmpq	%r9, %rsi
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rcx,%rsi,4), %eax
	btsl	%eax, %edx
	incq	%rsi
	cmpq	%rsi, %r9
	jne	LBB0_10
LBB0_11:
	movq	_LM36274_BL_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	16(%rdi), %edi
	movq	_LM36274_REG_BL_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
LBB0_4:
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No LEDs were enabled\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LM36274_BL_EN,4,2              ## @LM36274_BL_EN
	.comm	_LM36274_REG_BL_EN,4,2          ## @LM36274_REG_BL_EN
	.no_dead_strip	_lm36274_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm36274_init
_lm36274_init:                          ; @lm36274_init
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	w8, #16
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_7
LBB0_3:
	ldr	w0, [x0, #20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	and	x10, x8, #0xfffffff0
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #1
	mov	x12, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x11, #-32]
	ldp	q7, q16, [x11], #64
	ushl.4s	v5, v1, v5
	ushl.4s	v6, v1, v6
	ushl.4s	v7, v1, v7
	ushl.4s	v16, v1, v16
	orr.16b	v0, v5, v0
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	orr.16b	v4, v16, v4
	subs	x12, x12, #16
	b.ne	LBB0_5
; %bb.6:
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	orr.16b	v0, v4, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w11, s0
	mov.s	w12, v0[1]
	orr	w11, w11, w12
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #2
	sub	x8, x8, x10
	mov	w10, #1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9], #4
	lsl	w12, w10, w12
	orr	w11, w12, w11
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
Lloh5:
	adrp	x8, _LM36274_BL_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LM36274_BL_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w2, w8, w11
	ldr	w0, [x0, #16]
Lloh8:
	adrp	x8, _LM36274_REG_BL_EN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LM36274_REG_BL_EN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_regmap_write
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No LEDs were enabled\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LM36274_BL_EN,4,2              ; @LM36274_BL_EN
	.comm	_LM36274_REG_BL_EN,4,2          ; @LM36274_REG_BL_EN
	.no_dead_strip	_lm36274_init
.subsections_via_symbols
