	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si1133_cmd_reset_sw
_si1133_cmd_reset_sw:                   ## @si1133_cmd_reset_sw
	.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	8(%rdi), %r14
	movl	4(%rdi), %edi
	movq	_SI1133_REG_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SI1133_CMD_RESET_SW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_SI1133_CMD_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%r14, %r15
	movq	_SI1133_REG_RESPONSE0@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r12
	movq	_ENXIO@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_SI1133_CMD_MINSLEEP_US_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SI1133_CMD_MINSLEEP_US_HIGH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usleep_range
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	movq	%r12, %rdx
	callq	_regmap_read
	movl	(%r13), %ecx
	addl	%eax, %ecx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx
	movq	_SI1133_MAX_CMD_CTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%edx
	testl	%edx, %ecx
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%r15, %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_2
## %bb.6:
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_warn
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_7:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	%ecx, (%rbx)
	xorl	%eax, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI1133_REG_COMMAND,4,2         ## @SI1133_REG_COMMAND
	.comm	_SI1133_CMD_RESET_SW,4,2        ## @SI1133_CMD_RESET_SW
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_SI1133_CMD_TIMEOUT_MS,4,2      ## @SI1133_CMD_TIMEOUT_MS
	.comm	_SI1133_REG_RESPONSE0,4,2       ## @SI1133_REG_RESPONSE0
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_SI1133_CMD_MINSLEEP_US_LOW,4,2 ## @SI1133_CMD_MINSLEEP_US_LOW
	.comm	_SI1133_CMD_MINSLEEP_US_HIGH,4,2 ## @SI1133_CMD_MINSLEEP_US_HIGH
	.comm	_SI1133_MAX_CMD_CTR,4,2         ## @SI1133_MAX_CMD_CTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout on reset ctr resp: %d\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.no_dead_strip	_si1133_cmd_reset_sw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si1133_cmd_reset_sw
_si1133_cmd_reset_sw:                   ; @si1133_cmd_reset_sw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x8, _SI1133_REG_COMMAND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI1133_REG_COMMAND@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SI1133_CMD_RESET_SW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SI1133_CMD_RESET_SW@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_regmap_write
	cbnz	w0, LBB0_9
; %bb.1:
Lloh6:
	adrp	x22, _jiffies@GOTPAGE
Lloh7:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x21, [x22]
Lloh8:
	adrp	x8, _SI1133_CMD_TIMEOUT_MS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SI1133_CMD_TIMEOUT_MS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	add	x21, x0, x21
Lloh11:
	adrp	x23, _SI1133_REG_RESPONSE0@GOTPAGE
Lloh12:
	ldr	x23, [x23, _SI1133_REG_RESPONSE0@GOTPAGEOFF]
Lloh13:
	adrp	x24, _ENXIO@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ENXIO@GOTPAGEOFF]
Lloh15:
	adrp	x25, _SI1133_CMD_MINSLEEP_US_LOW@GOTPAGE
Lloh16:
	ldr	x25, [x25, _SI1133_CMD_MINSLEEP_US_LOW@GOTPAGEOFF]
Lloh17:
	adrp	x26, _SI1133_CMD_MINSLEEP_US_HIGH@GOTPAGE
Lloh18:
	ldr	x26, [x26, _SI1133_CMD_MINSLEEP_US_HIGH@GOTPAGEOFF]
Lloh19:
	adrp	x27, _SI1133_MAX_CMD_CTR@GOTPAGE
Lloh20:
	ldr	x27, [x27, _SI1133_MAX_CMD_CTR@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x25]
	ldr	w1, [x26]
	bl	_usleep_range
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w8, [x24]
	cmn	w0, w8
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #12]
	ldr	w8, [x27]
	bics	wzr, w8, w9
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x22]
	mov	x1, x21
	bl	_time_after
	cbz	x0, LBB0_3
; %bb.6:
	ldr	w2, [sp, #12]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh23:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_7:
	cbnz	w0, LBB0_9
; %bb.8:
	str	w8, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SI1133_REG_COMMAND,4,2         ; @SI1133_REG_COMMAND
	.comm	_SI1133_CMD_RESET_SW,4,2        ; @SI1133_CMD_RESET_SW
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_SI1133_CMD_TIMEOUT_MS,4,2      ; @SI1133_CMD_TIMEOUT_MS
	.comm	_SI1133_REG_RESPONSE0,4,2       ; @SI1133_REG_RESPONSE0
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_SI1133_CMD_MINSLEEP_US_LOW,4,2 ; @SI1133_CMD_MINSLEEP_US_LOW
	.comm	_SI1133_CMD_MINSLEEP_US_HIGH,4,2 ; @SI1133_CMD_MINSLEEP_US_HIGH
	.comm	_SI1133_MAX_CMD_CTR,4,2         ; @SI1133_MAX_CMD_CTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout on reset ctr resp: %d\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.no_dead_strip	_si1133_cmd_reset_sw
.subsections_via_symbols
