	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocelot_regfields_init          ## -- Begin function ocelot_regfields_init
	.p2align	4, 0x90
_ocelot_regfields_init:                 ## @ocelot_regfields_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_REGFIELD_MAX@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movq	%rsi, %r12
	movq	%rdi, %r14
	addq	$12, %r12
	xorl	%ebx, %ebx
	movq	_REG_MASK@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movl	%eax, %ecx
	addq	$16, %r12
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-12(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TARGET_OFFSET@GOTPCREL(%rip), %rax
	movzbl	(%rax), %ecx
	movq	%rdx, %rax
	shrq	%cl, %rax
	movq	(%r14), %rcx
	movq	16(%r14), %rsi
	movq	(%rcx,%rax,8), %rcx
	andq	(%r13), %rdx
	movq	(%rcx,%rdx,8), %rdx
	movq	-4(%r12), %rcx
	movl	24(%r14), %edi
	movl	(%rsi,%rax,4), %esi
	callq	_devm_regmap_field_alloc
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REGFIELD_MAX,4,2               ## @REGFIELD_MAX
	.comm	_TARGET_OFFSET,8,3              ## @TARGET_OFFSET
	.comm	_REG_MASK,8,3                   ## @REG_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ocelot_regfields_init          ; -- Begin function ocelot_regfields_init
	.p2align	2
_ocelot_regfields_init:                 ; @ocelot_regfields_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x20, _REGFIELD_MAX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REGFIELD_MAX@GOTPAGEOFF]
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	add	x22, x1, #12
Lloh2:
	adrp	x23, _TARGET_OFFSET@GOTPAGE
Lloh3:
	ldr	x23, [x23, _TARGET_OFFSET@GOTPAGEOFF]
Lloh4:
	adrp	x24, _REG_MASK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _REG_MASK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	add	x22, x22, #16
	cmp	x21, w8, uxtw
	b.hs	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x22, #-12]
	cbz	x9, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23]
	lsr	x8, x9, x8
	ldr	x10, [x19]
	ldr	x10, [x10, x8, lsl #3]
	ldr	x11, [x24]
	and	x9, x11, x9
	ldr	x2, [x10, x9, lsl #3]
	ldur	x3, [x22, #-4]
	ldr	w0, [x19, #24]
	ldr	x9, [x19, #16]
	ldr	w1, [x9, x8, lsl #2]
	bl	_devm_regmap_field_alloc
	ldr	x8, [x19, #8]
	str	w0, [x8, x21, lsl #2]
	bl	_IS_ERR
	cbnz	x0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x20]
	b	LBB0_2
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21, lsl #2]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_REGFIELD_MAX,4,2               ; @REGFIELD_MAX
	.comm	_TARGET_OFFSET,8,3              ; @TARGET_OFFSET
	.comm	_REG_MASK,8,3                   ; @REG_MASK
.subsections_via_symbols
