	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mpu3050_hw_init
_mpu3050_hw_init:                       ## @mpu3050_hw_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	movl	4(%rdi), %edi
	movq	_MPU3050_PWR_MGM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_MPU3050_PWR_MGM_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %edx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	4(%r14), %edi
	movl	(%rbx), %esi
	movq	_MPU3050_PWR_MGM_CLKSEL_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MPU3050_PWR_MGM_PLL_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	4(%r14), %edi
	movq	_MPU3050_INT_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MPU3050_MEM_PRFTCH@GOTPCREL(%rip), %rax
	movq	_MPU3050_MEM_USER_BANK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MPU3050_MEM_OTP_BANK_0@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	leaq	-64(%rbp), %r8
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$32, %ecx
	callq	_mpu3050_read_mem
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	leaq	-64(%rbp), %rdi
	movl	$32, %esi
	callq	_add_device_randomness
	movl	(%r14), %edi
	movl	-60(%rbp), %edx
	movl	-56(%rbp), %ecx
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %r9d
	movl	-40(%rbp), %r10d
	movl	%r10d, %ebx
	shll	$8, %ebx
	orl	%r9d, %ebx
	shll	$8, %r9d
	orl	%esi, %r9d
	shll	$16, %esi
	orl	%ecx, %esi
	shll	$8, %ecx
	orl	%edx, %ecx
	shll	$8, %edx
	orl	-64(%rbp), %edx
	andl	$8191, %edx                     ## imm = 0x1FFF
	shrl	$5, %ecx
	andl	$31, %ecx
	movl	-52(%rbp), %eax
	shll	$8, %eax
	orl	%eax, %esi
	shrl	$2, %esi
	movzwl	%si, %r8d
	shrl	$2, %r9d
	andl	$4095, %r9d                     ## imm = 0xFFF
	shrl	$7, %ebx
	andl	$7, %ebx
	sarl	$2, %r10d
	leaq	L_.str(%rip), %rsi
	pushq	%r10
	pushq	%rbx
	callq	_dev_info
	addq	$16, %rsp
	xorl	%eax, %eax
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_7
## %bb.6:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MPU3050_PWR_MGM,4,2            ## @MPU3050_PWR_MGM
	.comm	_MPU3050_PWR_MGM_RESET,4,2      ## @MPU3050_PWR_MGM_RESET
	.comm	_MPU3050_PWR_MGM_CLKSEL_MASK,4,2 ## @MPU3050_PWR_MGM_CLKSEL_MASK
	.comm	_MPU3050_PWR_MGM_PLL_Z,4,2      ## @MPU3050_PWR_MGM_PLL_Z
	.comm	_MPU3050_INT_CFG,4,2            ## @MPU3050_INT_CFG
	.comm	_MPU3050_MEM_PRFTCH,4,2         ## @MPU3050_MEM_PRFTCH
	.comm	_MPU3050_MEM_USER_BANK,4,2      ## @MPU3050_MEM_USER_BANK
	.comm	_MPU3050_MEM_OTP_BANK_0,4,2     ## @MPU3050_MEM_OTP_BANK_0
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"die ID: %04X, wafer ID: %02X, A lot ID: %04X, W lot ID: %03X, WP ID: %01X, rev ID: %02X\n"

	.no_dead_strip	_mpu3050_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mpu3050_hw_init
_mpu3050_hw_init:                       ; @mpu3050_hw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	ldr	w0, [x0, #4]
Lloh3:
	adrp	x20, _MPU3050_PWR_MGM@GOTPAGE
Lloh4:
	ldr	x20, [x20, _MPU3050_PWR_MGM@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh5:
	adrp	x8, _MPU3050_PWR_MGM_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MPU3050_PWR_MGM_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x3, x2
	bl	_regmap_update_bits
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _MPU3050_PWR_MGM_CLKSEL_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MPU3050_PWR_MGM_CLKSEL_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x8, _MPU3050_PWR_MGM_PLL_Z@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MPU3050_PWR_MGM_PLL_Z@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	bl	_regmap_update_bits
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x8, _MPU3050_INT_CFG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MPU3050_INT_CFG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_regmap_write
	cbnz	w0, LBB0_5
; %bb.3:
Lloh17:
	adrp	x8, _MPU3050_MEM_PRFTCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MPU3050_MEM_PRFTCH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _MPU3050_MEM_USER_BANK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MPU3050_MEM_USER_BANK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh23:
	adrp	x9, _MPU3050_MEM_OTP_BANK_0@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MPU3050_MEM_OTP_BANK_0@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w1, w8, w9
	add	x4, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w3, #32
	bl	_mpu3050_read_mem
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, sp, #8
	mov	w1, #32
	bl	_add_device_randomness
	ldr	w0, [x19]
	ldp	w9, w8, [sp, #8]
	orr	w9, w9, w8, lsl #8
	and	w2, w9, #0x1fff
	ldp	w9, w10, [sp, #16]
	orr	w8, w8, w9, lsl #8
	ubfx	w3, w8, #5, #5
	ldp	w8, w11, [sp, #24]
	orr	w9, w9, w8, lsl #16
	orr	w9, w9, w10, lsl #8
	ubfx	w4, w9, #2, #16
	orr	w8, w8, w11, lsl #8
	ubfx	w5, w8, #2, #12
	ldr	w8, [sp, #32]
	orr	w9, w11, w8, lsl #8
	ubfx	w6, w9, #7, #3
	asr	w7, w8, #2
Lloh26:
	adrp	x1, l_.str@PAGE
Lloh27:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w0, #0
LBB0_5:
	ldur	x8, [x29, #-24]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_MPU3050_PWR_MGM,4,2            ; @MPU3050_PWR_MGM
	.comm	_MPU3050_PWR_MGM_RESET,4,2      ; @MPU3050_PWR_MGM_RESET
	.comm	_MPU3050_PWR_MGM_CLKSEL_MASK,4,2 ; @MPU3050_PWR_MGM_CLKSEL_MASK
	.comm	_MPU3050_PWR_MGM_PLL_Z,4,2      ; @MPU3050_PWR_MGM_PLL_Z
	.comm	_MPU3050_INT_CFG,4,2            ; @MPU3050_INT_CFG
	.comm	_MPU3050_MEM_PRFTCH,4,2         ; @MPU3050_MEM_PRFTCH
	.comm	_MPU3050_MEM_USER_BANK,4,2      ; @MPU3050_MEM_USER_BANK
	.comm	_MPU3050_MEM_OTP_BANK_0,4,2     ; @MPU3050_MEM_OTP_BANK_0
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"die ID: %04X, wafer ID: %02X, A lot ID: %04X, W lot ID: %03X, WP ID: %01X, rev ID: %02X\n"

	.no_dead_strip	_mpu3050_hw_init
.subsections_via_symbols
