	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apds9960_regfield_init
_apds9960_regfield_init:                ## @apds9960_regfield_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %r15
	movq	56(%rdi), %r14
	movq	_apds9960_reg_field_int_als@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_regmap_field_alloc
	movq	%rax, 40(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$40, %rbx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_2:
	movq	_apds9960_reg_field_int_ges@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_regmap_field_alloc
	movq	%rax, 32(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	addq	$32, %rbx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_4:
	movq	_apds9960_reg_field_int_pxs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_regmap_field_alloc
	movq	%rax, 24(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	addq	$24, %rbx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_12
LBB0_6:
	movq	_apds9960_reg_field_enable_als@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_regmap_field_alloc
	movq	%rax, 16(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	addq	$16, %rbx
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_12
LBB0_8:
	movq	_apds9960_reg_field_enable_ges@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_regmap_field_alloc
	movq	%rax, 8(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	addq	$8, %rbx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
LBB0_10:
	movq	_apds9960_reg_field_enable_pxs@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_devm_regmap_field_alloc
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.11:
	leaq	L_.str.5(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	callq	_dev_err
	movq	(%rbx), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_apds9960_reg_field_int_als,4,2 ## @apds9960_reg_field_int_als
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"INT ALS reg field init failed\n"

	.comm	_apds9960_reg_field_int_ges,4,2 ## @apds9960_reg_field_int_ges
L_.str.1:                               ## @.str.1
	.asciz	"INT gesture reg field init failed\n"

	.comm	_apds9960_reg_field_int_pxs,4,2 ## @apds9960_reg_field_int_pxs
L_.str.2:                               ## @.str.2
	.asciz	"INT pxs reg field init failed\n"

	.comm	_apds9960_reg_field_enable_als,4,2 ## @apds9960_reg_field_enable_als
L_.str.3:                               ## @.str.3
	.asciz	"Enable ALS reg field init failed\n"

	.comm	_apds9960_reg_field_enable_ges,4,2 ## @apds9960_reg_field_enable_ges
L_.str.4:                               ## @.str.4
	.asciz	"Enable gesture reg field init failed\n"

	.comm	_apds9960_reg_field_enable_pxs,4,2 ## @apds9960_reg_field_enable_pxs
L_.str.5:                               ## @.str.5
	.asciz	"Enable PXS reg field init failed\n"

	.no_dead_strip	_apds9960_regfield_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apds9960_regfield_init
_apds9960_regfield_init:                ; @apds9960_regfield_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldp	x21, x19, [x0, #48]
Lloh0:
	adrp	x8, _apds9960_reg_field_int_als@GOTPAGE
Lloh1:
	ldr	x8, [x8, _apds9960_reg_field_int_als@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	mov	x22, x20
	str	x0, [x22, #40]!
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_2:
Lloh5:
	adrp	x8, _apds9960_reg_field_int_ges@GOTPAGE
Lloh6:
	ldr	x8, [x8, _apds9960_reg_field_int_ges@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	mov	x22, x20
	str	x0, [x22, #32]!
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_4:
Lloh10:
	adrp	x8, _apds9960_reg_field_int_pxs@GOTPAGE
Lloh11:
	ldr	x8, [x8, _apds9960_reg_field_int_pxs@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	mov	x22, x20
	str	x0, [x22, #24]!
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_6:
Lloh15:
	adrp	x8, _apds9960_reg_field_enable_als@GOTPAGE
Lloh16:
	ldr	x8, [x8, _apds9960_reg_field_enable_als@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	mov	x22, x20
	str	x0, [x22, #16]!
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x8, _apds9960_reg_field_enable_ges@GOTPAGE
Lloh21:
	ldr	x8, [x8, _apds9960_reg_field_enable_ges@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	mov	x22, x20
	str	x0, [x22, #8]!
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh25:
	adrp	x8, _apds9960_reg_field_enable_pxs@GOTPAGE
Lloh26:
	ldr	x8, [x8, _apds9960_reg_field_enable_pxs@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x21
	bl	_devm_regmap_field_alloc
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.11:
Lloh28:
	adrp	x1, l_.str.5@PAGE
Lloh29:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x22, x20
LBB0_12:
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_apds9960_reg_field_int_als,4,2 ; @apds9960_reg_field_int_als
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"INT ALS reg field init failed\n"

	.comm	_apds9960_reg_field_int_ges,4,2 ; @apds9960_reg_field_int_ges
l_.str.1:                               ; @.str.1
	.asciz	"INT gesture reg field init failed\n"

	.comm	_apds9960_reg_field_int_pxs,4,2 ; @apds9960_reg_field_int_pxs
l_.str.2:                               ; @.str.2
	.asciz	"INT pxs reg field init failed\n"

	.comm	_apds9960_reg_field_enable_als,4,2 ; @apds9960_reg_field_enable_als
l_.str.3:                               ; @.str.3
	.asciz	"Enable ALS reg field init failed\n"

	.comm	_apds9960_reg_field_enable_ges,4,2 ; @apds9960_reg_field_enable_ges
l_.str.4:                               ; @.str.4
	.asciz	"Enable gesture reg field init failed\n"

	.comm	_apds9960_reg_field_enable_pxs,4,2 ; @apds9960_reg_field_enable_pxs
l_.str.5:                               ; @.str.5
	.asciz	"Enable PXS reg field init failed\n"

	.no_dead_strip	_apds9960_regfield_init
.subsections_via_symbols
