	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_identify
_pmbus_identify:                        ## @pmbus_identify
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$0, (%rsi)
	jne	LBB0_9
## %bb.1:
	movq	_PMBUS_PAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pmbus_check_byte_register
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_PMBUS_PAGES@GOTPCREL(%rip), %r12
	movl	$1, %ebx
	cmpl	$2, (%r12)
	jl	LBB0_7
## %bb.4:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_pmbus_set_page
	testq	%rax, %rax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incl	%ebx
	cmpl	(%r12), %ebx
	jl	LBB0_5
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pmbus_set_page
	jmp	LBB0_8
LBB0_2:
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, (%r14)
	movq	%r15, %rdi
	callq	_pmbus_clear_faults
LBB0_9:
	movq	_PMBUS_VOUT_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pmbus_check_byte_register
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:
	movl	(%rbx), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pmbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_17
## %bb.11:
	cmpl	$255, %eax
	je	LBB0_17
## %bb.12:
	shrl	$5, %eax
	je	LBB0_17
## %bb.13:
	cmpl	$2, %eax
	je	LBB0_16
## %bb.14:
	cmpl	$1, %eax
	jne	LBB0_18
## %bb.15:
	movq	_vid@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	_vr11@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_17
LBB0_16:
	movq	_direct@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_17:
	movq	8(%r14), %rax
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_direct@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_20
LBB0_19:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_pmbus_find_sensor_groups
	xorl	%eax, %eax
LBB0_20:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMBUS_PAGE,4,2                 ## @PMBUS_PAGE
	.comm	_PMBUS_PAGES,4,2                ## @PMBUS_PAGES
	.comm	_PMBUS_VOUT_MODE,4,2            ## @PMBUS_VOUT_MODE
	.comm	_vid,8,3                        ## @vid
	.comm	_PSC_VOLTAGE_OUT,8,3            ## @PSC_VOLTAGE_OUT
	.comm	_vr11,4,2                       ## @vr11
	.comm	_direct,8,3                     ## @direct
	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_pmbus_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_identify
_pmbus_identify:                        ; @pmbus_identify
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
	cbnz	w8, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _PMBUS_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMBUS_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_pmbus_check_byte_register
	cbz	x0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x22, _PMBUS_PAGES@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PMBUS_PAGES@GOTPAGEOFF]
	ldr	w8, [x22]
	mov	w21, #1
	cmp	w8, #2
	b.lt	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_pmbus_set_page
	tbnz	x0, #63, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w21, w21, #1
	ldr	w8, [x22]
	cmp	w21, w8
	b.lt	LBB0_3
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	bl	_pmbus_set_page
	b	LBB0_7
LBB0_6:
	mov	w21, #1
LBB0_7:
	str	w21, [x19]
	mov	x0, x20
	bl	_pmbus_clear_faults
LBB0_8:
Lloh5:
	adrp	x23, _PMBUS_VOUT_MODE@GOTPAGE
Lloh6:
	ldr	x23, [x23, _PMBUS_VOUT_MODE@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #0
	bl	_pmbus_check_byte_register
Lloh7:
	adrp	x22, _PSC_VOLTAGE_OUT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _PSC_VOLTAGE_OUT@GOTPAGEOFF]
Lloh9:
	adrp	x21, _direct@GOTPAGE
Lloh10:
	ldr	x21, [x21, _direct@GOTPAGEOFF]
	cbz	x0, LBB0_15
; %bb.9:
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #0
	bl	_pmbus_read_byte_data
	tbnz	w0, #31, LBB0_15
; %bb.10:
	cmp	w0, #255
	lsr	w8, w0, #5
	ccmp	w8, #0, #4, ne
	b.eq	LBB0_15
; %bb.11:
	cmp	w8, #2
	b.eq	LBB0_14
; %bb.12:
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.13:
Lloh11:
	adrp	x8, _vid@GOTPAGE
Lloh12:
	ldr	x8, [x8, _vid@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	ldr	x10, [x22]
	str	x8, [x9, x10, lsl #3]
Lloh14:
	adrp	x8, _vr11@GOTPAGE
Lloh15:
	ldr	x8, [x8, _vr11@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	b	LBB0_15
LBB0_14:
	ldr	x8, [x21]
	ldr	x9, [x19, #8]
	ldr	x10, [x22]
	str	x8, [x9, x10, lsl #3]
LBB0_15:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_16:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_17:
	mov	x0, x20
	mov	x1, x19
	bl	_pmbus_find_sensor_groups
	mov	w0, #0
LBB0_18:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_PMBUS_PAGE,4,2                 ; @PMBUS_PAGE
	.comm	_PMBUS_PAGES,4,2                ; @PMBUS_PAGES
	.comm	_PMBUS_VOUT_MODE,4,2            ; @PMBUS_VOUT_MODE
	.comm	_vid,8,3                        ; @vid
	.comm	_PSC_VOLTAGE_OUT,8,3            ; @PSC_VOLTAGE_OUT
	.comm	_vr11,4,2                       ; @vr11
	.comm	_direct,8,3                     ; @direct
	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_pmbus_identify
.subsections_via_symbols
