	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function drv2667_init
_drv2667_init:                          ## @drv2667_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	$195, (%rdi)
	movq	_DRV2667_PAGE_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movl	4(%rdi), %r14d
	movq	_drv2667_init_regs@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%r14d, %edi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_regmap_register_patch
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	8(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movq	_DRV2667_PAGE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	4(%r12), %edi
	movl	16(%r12), %edx
	callq	_regmap_write
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	8(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%r14d, %edx
	callq	_dev_err
LBB0_10:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	callq	_drv2667_set_waveform_freq
	movl	4(%r12), %r15d
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	movl	%eax, %r14d
	movl	(%rbx), %esi
	movq	_DRV2667_PAGE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	callq	_regmap_write
	jmp	LBB0_10
LBB0_6:
	movq	_drv2667_page1_init@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_ARRAY_SIZE
	movl	%r15d, %edi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_regmap_register_patch
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movq	8(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_8:
	movl	4(%r12), %edi
	movl	(%rbx), %esi
	movq	_DRV2667_PAGE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV2667_PAGE_1,4,2             ## @DRV2667_PAGE_1
	.comm	_drv2667_init_regs,4,2          ## @drv2667_init_regs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to write init registers: %d\n"

	.comm	_DRV2667_PAGE,4,2               ## @DRV2667_PAGE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to set page: %d\n"

	.comm	_drv2667_page1_init,4,2         ## @drv2667_page1_init
L_.str.2:                               ## @.str.2
	.asciz	"Failed to write page registers: %d\n"

	.comm	_DRV2667_PAGE_0,4,2             ## @DRV2667_PAGE_0
	.no_dead_strip	_drv2667_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function drv2667_init
_drv2667_init:                          ; @drv2667_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	x19, x0
	mov	w8, #195
	str	w8, [x0]
Lloh0:
	adrp	x8, _DRV2667_PAGE_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV2667_PAGE_1@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	w20, [x0, #4]
Lloh3:
	adrp	x8, _drv2667_init_regs@GOTPAGE
Lloh4:
	ldr	x8, [x8, _drv2667_init_regs@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_regmap_register_patch
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x22, _DRV2667_PAGE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _DRV2667_PAGE@GOTPAGEOFF]
	ldr	w1, [x22]
	ldr	w2, [x19, #16]
	bl	_regmap_write
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_4:
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
	mov	x0, x19
	bl	_drv2667_set_waveform_freq
	ldr	w21, [x19, #4]
	cbz	w0, LBB0_8
; %bb.7:
	mov	x20, x0
	ldr	w1, [x22]
Lloh12:
	adrp	x8, _DRV2667_PAGE_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DRV2667_PAGE_0@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x21
	bl	_regmap_write
	b	LBB0_5
LBB0_8:
Lloh15:
	adrp	x8, _drv2667_page1_init@GOTPAGE
Lloh16:
	ldr	x8, [x8, _drv2667_page1_init@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	mov	x0, x20
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x21
	mov	x1, x20
	bl	_regmap_register_patch
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_10:
	ldr	w0, [x19, #4]
	ldr	w1, [x22]
Lloh20:
	adrp	x8, _DRV2667_PAGE_0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DRV2667_PAGE_0@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	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	_regmap_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV2667_PAGE_1,4,2             ; @DRV2667_PAGE_1
	.comm	_drv2667_init_regs,4,2          ; @drv2667_init_regs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to write init registers: %d\n"

	.comm	_DRV2667_PAGE,4,2               ; @DRV2667_PAGE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to set page: %d\n"

	.comm	_drv2667_page1_init,4,2         ; @drv2667_page1_init
l_.str.2:                               ; @.str.2
	.asciz	"Failed to write page registers: %d\n"

	.comm	_DRV2667_PAGE_0,4,2             ; @DRV2667_PAGE_0
	.no_dead_strip	_drv2667_init
.subsections_via_symbols
