	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmbus_identify_common
_pmbus_identify_common:                 ## @pmbus_identify_common
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_PMBUS_VOUT_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	%r14d, %esi
	callq	_pmbus_check_byte_register
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movl	(%rbx), %edx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	__pmbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_12
## %bb.2:
	cmpl	$255, %eax
	je	LBB0_12
## %bb.3:
	movl	%eax, %ecx
	shrl	$5, %ecx
	cmpl	$2, %ecx
	je	LBB0_10
## %bb.4:
	cmpl	$1, %ecx
	je	LBB0_8
## %bb.5:
	testl	%ecx, %ecx
	jne	LBB0_7
## %bb.6:
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movq	_linear@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_7
## %bb.11:
	shll	$3, %eax
	sarl	$3, %eax
	movq	(%r15), %rcx
	movslq	%r14d, %rdx
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_12
LBB0_10:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_direct@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movq	_PSC_VOLTAGE_OUT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	_vid@GOTPCREL(%rip), %rcx
LBB0_9:
	cmpl	(%rcx), %eax
	jne	LBB0_7
LBB0_12:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pmbus_clear_fault_page
	xorl	%eax, %eax
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_PMBUS_VOUT_MODE,4,2            ## @PMBUS_VOUT_MODE
	.comm	_PSC_VOLTAGE_OUT,8,3            ## @PSC_VOLTAGE_OUT
	.comm	_linear,4,2                     ## @linear
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_vid,4,2                        ## @vid
	.comm	_direct,4,2                     ## @direct
	.no_dead_strip	_pmbus_identify_common
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmbus_identify_common
_pmbus_identify_common:                 ; @pmbus_identify_common
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _PMBUS_VOUT_MODE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _PMBUS_VOUT_MODE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x1, x19
	bl	_pmbus_check_byte_register
	cbz	x0, LBB0_11
; %bb.1:
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	__pmbus_read_byte_data
	tbnz	w0, #31, LBB0_11
; %bb.2:
	cmp	w0, #255
	b.eq	LBB0_11
; %bb.3:
	lsr	w8, w0, #5
	cmp	w8, #2
	b.eq	LBB0_8
; %bb.4:
	cmp	w8, #1
	b.eq	LBB0_9
; %bb.5:
	cbnz	w8, LBB0_13
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _PSC_VOLTAGE_OUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PSC_VOLTAGE_OUT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh5:
	adrp	x9, _linear@GOTPAGE
Lloh6:
	ldr	x9, [x9, _linear@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.7:
	sbfx	w8, w0, #0, #29
	ldr	x9, [x21]
	str	w8, [x9, w19, sxtw #2]
	b	LBB0_11
LBB0_8:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh8:
	adrp	x9, _PSC_VOLTAGE_OUT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PSC_VOLTAGE_OUT@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh11:
	adrp	x9, _direct@GOTPAGE
Lloh12:
	ldr	x9, [x9, _direct@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _PSC_VOLTAGE_OUT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _PSC_VOLTAGE_OUT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
Lloh16:
	adrp	x9, _vid@GOTPAGE
Lloh17:
	ldr	x9, [x9, _vid@GOTPAGEOFF]
LBB0_10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
LBB0_11:
	mov	x0, x20
	mov	x1, x19
	bl	_pmbus_clear_fault_page
	mov	w0, #0
LBB0_12:
	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
LBB0_13:
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_PMBUS_VOUT_MODE,4,2            ; @PMBUS_VOUT_MODE
	.comm	_PSC_VOLTAGE_OUT,8,3            ; @PSC_VOLTAGE_OUT
	.comm	_linear,4,2                     ; @linear
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_vid,4,2                        ; @vid
	.comm	_direct,4,2                     ; @direct
	.no_dead_strip	_pmbus_identify_common
.subsections_via_symbols
