	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function configure_regmap
_configure_regmap:                      ## @configure_regmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movslq	%esi, %rbx
	movl	(%rax,%rbx,4), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movq	_adv76xx_regmap_cnf@GOTPCREL(%rip), %rax
	leaq	(,%rbx,4), %rsi
	addq	(%rax), %rsi
	callq	_devm_regmap_init_i2c
	movq	8(%r14), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_PTR_ERR
	movq	(%r14), %rcx
	movl	(%rcx,%rbx,4), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_v4l_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_adv76xx_regmap_cnf,8,3         ## @adv76xx_regmap_cnf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error initializing regmap %d with error %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_configure_regmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function configure_regmap
_configure_regmap:                      ; @configure_regmap
	.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
	ldr	x8, [x0]
	ldr	w0, [x8, w1, sxtw #2]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x1
	sxtw	x8, w19
Lloh0:
	adrp	x9, _adv76xx_regmap_cnf@GOTPAGE
Lloh1:
	ldr	x9, [x9, _adv76xx_regmap_cnf@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	lsl	x21, x8, #2
	add	x1, x9, x21
	bl	_devm_regmap_init_i2c
	ldr	x8, [x20, #8]
	str	w0, [x8, x21]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x21]
	bl	_PTR_ERR
	mov	x3, x0
	ldr	x8, [x20]
	ldr	w0, [x8, x21]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_v4l_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _ENODEV@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_adv76xx_regmap_cnf,8,3         ; @adv76xx_regmap_cnf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error initializing regmap %d with error %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_configure_regmap
.subsections_via_symbols
