	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5k4aa_dump_registers
_s5k4aa_dump_registers:                 ## @s5k4aa_dump_registers
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_S5K4AA_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_read_sensor
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %r15
	leaq	-48(%rbp), %r12
	leaq	L_.str.1(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	_S5K4AA_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
	movl	-44(%rbp), %esi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_pr_info
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, -48(%rbp)
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_m5602_read_sensor
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_info
	incl	%r14d
	cmpl	$256, %r14d                     ## imm = 0x100
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	cmpl	$15, %eax
	jl	LBB0_1
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movl	$0, -44(%rbp)
	leaq	-48(%rbp), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	_S5K4AA_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
	movl	-44(%rbp), %esi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	xorl	%r15d, %r15d
	leaq	L_.str.4(%rip), %r14
	leaq	L_.str.5(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$255, -52(%rbp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_m5602_read_sensor
	movq	%rbx, %rdi
	movl	%r15d, %esi
	leaq	-52(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
	movq	%rbx, %rdi
	movl	%r15d, %esi
	leaq	-56(%rbp), %rdx
	movl	$1, %ecx
	callq	_m5602_read_sensor
	movl	-56(%rbp), %eax
	cmpl	-52(%rbp), %eax
	movq	%r13, %rdi
	cmoveq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_pr_info
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_m5602_write_sensor
	incl	%r15d
	cmpl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %eax
	leal	1(%rax), %ecx
	movl	%ecx, -44(%rbp)
	cmpl	$15, %eax
	jl	LBB0_5
## %bb.8:
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_S5K4AA_PAGE_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_m5602_write_sensor
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5K4AA_PAGE_MAP,4,2            ## @S5K4AA_PAGE_MAP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dumping the s5k4aa register state for page 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"register 0x%x contains 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"s5k4aa register state dump complete\n"

L_.str.3:                               ## @.str.3
	.asciz	"Probing for which registers that are read/write for page 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"register 0x%x is writeable\n"

L_.str.5:                               ## @.str.5
	.asciz	"register 0x%x is read only\n"

L_.str.6:                               ## @.str.6
	.asciz	"Read/write register probing complete\n"

	.no_dead_strip	_s5k4aa_dump_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5k4aa_dump_registers
_s5k4aa_dump_registers:                 ; @s5k4aa_dump_registers
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x23, _S5K4AA_PAGE_MAP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _S5K4AA_PAGE_MAP@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #40
	mov	w3, #1
	bl	_m5602_read_sensor
	str	wzr, [sp, #44]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	ldr	w1, [x23]
	add	x2, sp, #44
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	ldr	w8, [sp, #44]
	str	x8, [sp]
	mov	x0, x20
	bl	_pr_info
	mov	w22, #0
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [sp, #36]
	add	x2, sp, #36
	mov	x0, x19
	mov	x1, x22
	mov	w3, #1
	bl	_m5602_read_sensor
	ldr	w8, [sp, #36]
	stp	x22, x8, [sp]
	mov	x0, x21
	bl	_pr_info
	add	w22, w22, #1
	cmp	w22, #256
	b.ne	LBB0_2
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #44]
	add	w9, w8, #1
	str	w9, [sp, #44]
	cmp	w8, #15
	b.lt	LBB0_1
; %bb.4:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh8:
	adrp	x20, l_.str.3@PAGE
Lloh9:
	add	x20, x20, l_.str.3@PAGEOFF
	str	wzr, [sp, #44]
	mov	w22, #255
Lloh10:
	adrp	x24, l_.str.5@PAGE
Lloh11:
	add	x24, x24, l_.str.5@PAGEOFF
Lloh12:
	adrp	x25, l_.str.4@PAGE
Lloh13:
	add	x25, x25, l_.str.4@PAGEOFF
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x23]
	add	x2, sp, #44
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	ldr	w8, [sp, #44]
	str	x8, [sp]
	mov	x0, x20
	bl	_pr_info
	mov	w21, #0
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	w22, [sp, #28]
	add	x2, sp, #36
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_m5602_read_sensor
	add	x2, sp, #28
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_m5602_write_sensor
	add	x2, sp, #32
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_m5602_read_sensor
	ldp	w9, w8, [sp, #28]
	cmp	w8, w9
	csel	x0, x25, x24, eq
	str	x21, [sp]
	bl	_pr_info
	add	x2, sp, #36
	mov	x0, x19
	mov	x1, x21
	mov	w3, #1
	bl	_m5602_write_sensor
	add	w21, w21, #1
	cmp	w21, #256
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #44]
	add	w9, w8, #1
	str	w9, [sp, #44]
	cmp	w8, #15
	b.lt	LBB0_5
; %bb.8:
Lloh14:
	adrp	x0, l_.str.6@PAGE
Lloh15:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_info
	ldr	w1, [x23]
	add	x2, sp, #40
	mov	x0, x19
	mov	w3, #1
	bl	_m5602_write_sensor
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_S5K4AA_PAGE_MAP,4,2            ; @S5K4AA_PAGE_MAP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dumping the s5k4aa register state for page 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"register 0x%x contains 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"s5k4aa register state dump complete\n"

l_.str.3:                               ; @.str.3
	.asciz	"Probing for which registers that are read/write for page 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"register 0x%x is writeable\n"

l_.str.5:                               ; @.str.5
	.asciz	"register 0x%x is read only\n"

l_.str.6:                               ; @.str.6
	.asciz	"Read/write register probing complete\n"

	.no_dead_strip	_s5k4aa_dump_registers
.subsections_via_symbols
