	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl_read_idcode_register
_twl_read_idcode_register:              ## @twl_read_idcode_register
	.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	_TWL4030_MODULE_INTBR@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_TWL_EEPROM_R_UNLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_UNLOCK_TEST_REG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_twl_i2c_write_u8
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	(%r14), %edi
	movq	_twl_priv@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_REG_IDCODE_7_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %ecx
	callq	_twl_i2c_read
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	movl	%ebx, %esi
	callq	_pr_err
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	movl	(%r15), %edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_twl_i2c_write_u8
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	%r14d, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_TWL4030_MODULE_INTBR,4,2       ## @TWL4030_MODULE_INTBR
	.comm	_TWL_EEPROM_R_UNLOCK,4,2        ## @TWL_EEPROM_R_UNLOCK
	.comm	_REG_UNLOCK_TEST_REG,4,2        ## @REG_UNLOCK_TEST_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TWL4030 Unable to unlock IDCODE registers -%d\n"

	.comm	_twl_priv,8,3                   ## @twl_priv
	.comm	_REG_IDCODE_7_0,4,2             ## @REG_IDCODE_7_0
L_.str.1:                               ## @.str.1
	.asciz	"TWL4030: unable to read IDCODE -%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"TWL4030 Unable to relock IDCODE registers -%d\n"

	.no_dead_strip	_twl_read_idcode_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl_read_idcode_register
_twl_read_idcode_register:              ; @twl_read_idcode_register
	.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
Lloh0:
	adrp	x20, _TWL4030_MODULE_INTBR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TWL4030_MODULE_INTBR@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _TWL_EEPROM_R_UNLOCK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TWL_EEPROM_R_UNLOCK@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x21, _REG_UNLOCK_TEST_REG@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG_UNLOCK_TEST_REG@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_twl_i2c_write_u8
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _twl_priv@GOTPAGE
Lloh10:
	ldr	x8, [x8, _twl_priv@GOTPAGEOFF]
Lloh11:
	ldr	x1, [x8]
Lloh12:
	adrp	x8, _REG_IDCODE_7_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_IDCODE_7_0@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	w3, #4
	bl	_twl_i2c_read
	cbz	w0, LBB0_4
; %bb.3:
	mov	x19, x0
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldr	w0, [x20]
	ldr	w2, [x21]
	mov	w1, #0
	bl	_twl_i2c_write_u8
	mov	x19, x0
	cbz	w0, LBB0_7
; %bb.5:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_6:
	mov	x1, x19
	bl	_pr_err
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_TWL4030_MODULE_INTBR,4,2       ; @TWL4030_MODULE_INTBR
	.comm	_TWL_EEPROM_R_UNLOCK,4,2        ; @TWL_EEPROM_R_UNLOCK
	.comm	_REG_UNLOCK_TEST_REG,4,2        ; @REG_UNLOCK_TEST_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TWL4030 Unable to unlock IDCODE registers -%d\n"

	.comm	_twl_priv,8,3                   ; @twl_priv
	.comm	_REG_IDCODE_7_0,4,2             ; @REG_IDCODE_7_0
l_.str.1:                               ; @.str.1
	.asciz	"TWL4030: unable to read IDCODE -%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"TWL4030 Unable to relock IDCODE registers -%d\n"

	.no_dead_strip	_twl_read_idcode_register
.subsections_via_symbols
