	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_update_device
_pmbus_update_device:                   ## @pmbus_update_device
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %edi
	callq	_to_i2c_client
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	40(%rax), %r12
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r14), %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	cmpl	$0, (%r14)
	jne	LBB0_21
LBB0_2:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.3:
	xorl	%r15d, %r15d
	movq	_pmbus_status@GOTPCREL(%rip), %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	incq	%r15
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movslq	(%r12), %rax
	cmpq	%rax, %r15
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jge	LBB0_10
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	*32(%r14)
	movq	24(%r14), %rcx
	movq	_PB_STATUS_BASE@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movslq	%r15d, %r13
	addq	%r13, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$8, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%r12
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$12, %r14
	cmpq	%rax, %r12
	movq	_pmbus_status@GOTPCREL(%rip), %rbx
	jge	LBB0_9
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %r15
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movl	-8(%r15,%r14), %ecx
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testl	%ecx, (%rax,%rdx,4)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	movl	(%r15,%r14), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	__pmbus_read_byte_data
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rcx
	movslq	-4(%r15,%r14), %rdx
	addq	%r13, %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%rbx), %r15
	jmp	LBB0_8
LBB0_10:
	movq	8(%r12), %rax
	movl	(%rax), %eax
	movq	_PMBUS_HAVE_STATUS_INPUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_12
## %bb.11:
	movq	_PMBUS_STATUS_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	__pmbus_read_byte_data
	movq	24(%r14), %rcx
	movq	_PB_STATUS_INPUT_BASE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	8(%r12), %rax
	movl	(%rax), %eax
LBB0_12:
	movq	_PMBUS_HAVE_STATUS_VMON@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	_jiffies@GOTPCREL(%rip), %r15
	je	LBB0_14
## %bb.13:
	movq	_PMBUS_VIRT_STATUS_VMON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	__pmbus_read_byte_data
	movq	24(%r14), %rcx
	movq	_PB_STATUS_VMON_BASE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_14:
	movq	16(%r14), %rbx
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	__pmbus_read_word_data
	movl	%eax, 8(%rbx)
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	24(%rbx), %rbx
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$0, (%r14)
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	cmpq	$0, 16(%rbx)
	jne	LBB0_18
	jmp	LBB0_19
LBB0_20:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_pmbus_clear_faults
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movl	$1, (%r14)
	movq	-80(%rbp), %r15                 ## 8-byte Reload
LBB0_21:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.comm	_PB_STATUS_BASE,4,2             ## @PB_STATUS_BASE
	.comm	_pmbus_status,8,3               ## @pmbus_status
	.comm	_PMBUS_HAVE_STATUS_INPUT,4,2    ## @PMBUS_HAVE_STATUS_INPUT
	.comm	_PMBUS_STATUS_INPUT,4,2         ## @PMBUS_STATUS_INPUT
	.comm	_PB_STATUS_INPUT_BASE,8,3       ## @PB_STATUS_INPUT_BASE
	.comm	_PMBUS_HAVE_STATUS_VMON,4,2     ## @PMBUS_HAVE_STATUS_VMON
	.comm	_PMBUS_VIRT_STATUS_VMON,4,2     ## @PMBUS_VIRT_STATUS_VMON
	.comm	_PB_STATUS_VMON_BASE,8,3        ## @PB_STATUS_VMON_BASE
	.no_dead_strip	_pmbus_update_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_update_device
_pmbus_update_device:                   ; @pmbus_update_device
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	w0, [x0]
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	ldr	x24, [x0, #40]
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _jiffies@GOTPAGE
Lloh1:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _HZ@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cbnz	w8, LBB0_16
LBB0_2:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.3:
	mov	x22, #0
Lloh6:
	adrp	x25, _PB_STATUS_BASE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PB_STATUS_BASE@GOTPAGEOFF]
Lloh8:
	adrp	x26, _pmbus_status@GOTPAGE
Lloh9:
	ldr	x26, [x26, _pmbus_status@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.ge	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x8, [x19, #32]
	mov	x0, x21
	mov	x1, x22
	blr	x8
	ldr	x8, [x19, #24]
	ldr	w9, [x25]
	add	w9, w9, w22
	str	x0, [x8, w9, sxtw #3]
	ldr	x0, [x26]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x27, #0
	mov	x28, #0
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x28, x28, #1
	bl	_ARRAY_SIZE
	add	x27, x27, #12
	cmp	x28, w0, sxtw
	b.ge	LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x0, [x26]
	ldr	x8, [x24, #8]
	ldr	w8, [x8, x22, lsl #2]
	ldr	w9, [x0, x27]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x23, x0, x27
	ldr	w2, [x23, #8]
	mov	x0, x21
	mov	x1, x22
	bl	__pmbus_read_byte_data
	ldr	x8, [x19, #24]
	ldr	w9, [x23, #4]
	add	w9, w9, w22
	str	x0, [x8, w9, sxtw #3]
	ldr	x0, [x26]
	b	LBB0_7
LBB0_10:
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _PMBUS_HAVE_STATUS_INPUT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PMBUS_HAVE_STATUS_INPUT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
Lloh13:
	adrp	x8, _PMBUS_STATUS_INPUT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PMBUS_STATUS_INPUT@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	__pmbus_read_byte_data
Lloh16:
	adrp	x8, _PB_STATUS_INPUT_BASE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PB_STATUS_INPUT_BASE@GOTPAGEOFF]
	ldr	x9, [x19, #24]
Lloh18:
	ldr	x8, [x8]
	str	x0, [x9, x8, lsl #3]
	ldr	x8, [x24, #8]
	ldr	w8, [x8]
LBB0_12:
Lloh19:
	adrp	x9, _PMBUS_HAVE_STATUS_VMON@GOTPAGE
Lloh20:
	ldr	x9, [x9, _PMBUS_HAVE_STATUS_VMON@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.13:
Lloh22:
	adrp	x8, _PMBUS_VIRT_STATUS_VMON@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PMBUS_VIRT_STATUS_VMON@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	__pmbus_read_byte_data
	ldr	x8, [x19, #24]
Lloh25:
	adrp	x9, _PB_STATUS_VMON_BASE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PB_STATUS_VMON_BASE@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	str	x0, [x8, x9, lsl #3]
LBB0_14:
	ldr	x22, [x19, #16]
	cbnz	x22, LBB0_19
LBB0_15:
	mov	x0, x21
	bl	_pmbus_clear_faults
Lloh28:
	adrp	x8, _jiffies@GOTPAGE
Lloh29:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_16:
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	ldp	w2, w1, [x22]
	mov	x0, x21
	bl	__pmbus_read_word_data
	str	w0, [x22, #8]
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	ldr	x22, [x22, #24]
	cbz	x22, LBB0_15
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cbz	w8, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x22, #16]
	cbnz	x8, LBB0_17
	b	LBB0_18
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.comm	_PB_STATUS_BASE,4,2             ; @PB_STATUS_BASE
	.comm	_pmbus_status,8,3               ; @pmbus_status
	.comm	_PMBUS_HAVE_STATUS_INPUT,4,2    ; @PMBUS_HAVE_STATUS_INPUT
	.comm	_PMBUS_STATUS_INPUT,4,2         ; @PMBUS_STATUS_INPUT
	.comm	_PB_STATUS_INPUT_BASE,8,3       ; @PB_STATUS_INPUT_BASE
	.comm	_PMBUS_HAVE_STATUS_VMON,4,2     ; @PMBUS_HAVE_STATUS_VMON
	.comm	_PMBUS_VIRT_STATUS_VMON,4,2     ; @PMBUS_VIRT_STATUS_VMON
	.comm	_PB_STATUS_VMON_BASE,8,3        ; @PB_STATUS_VMON_BASE
	.no_dead_strip	_pmbus_update_device
.subsections_via_symbols
