	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max34440_read_byte_data
_max34440_read_byte_data:               ## @max34440_read_byte_data
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r15
	testl	%esi, %esi
	js	LBB0_9
## %bb.1:
	movq	%r15, %rdi
	callq	_pmbus_set_page
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_19
## %bb.2:
	cmpl	$128, %ebx
	je	LBB0_10
LBB0_3:
	cmpl	$129, %ebx
	jne	LBB0_16
## %bb.4:
	movq	_PMBUS_STATUS_MFR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pmbus_read_word_data
	testl	%eax, %eax
	js	LBB0_19
## %bb.5:
	movq	_MAX34440_STATUS_OC_WARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_7
## %bb.6:
	movq	_PB_IOUT_OC_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	orl	%r14d, %ecx
	movq	_MAX34440_STATUS_OC_FAULT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_18
## %bb.8:
	movq	_PB_IOUT_OC_FAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	xorl	%r14d, %r14d
	cmpl	$128, %ebx
	jne	LBB0_3
LBB0_10:
	movq	_PMBUS_STATUS_MFR_SPECIFIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_pmbus_read_word_data
	testl	%eax, %eax
	js	LBB0_19
## %bb.11:
	movq	_MAX34440_STATUS_OT_WARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_13
## %bb.12:
	movq	_PB_TEMP_OT_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_13:
	orl	%r14d, %ecx
	movq	_MAX34440_STATUS_OT_FAULT@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_18
## %bb.14:
	movq	_PB_TEMP_OT_FAULT@GOTPCREL(%rip), %rax
LBB0_15:
	orl	(%rax), %ecx
LBB0_18:
	movl	%ecx, %eax
	jmp	LBB0_19
LBB0_16:
	movq	_ENODATA@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMBUS_STATUS_MFR_SPECIFIC,4,2  ## @PMBUS_STATUS_MFR_SPECIFIC
	.comm	_MAX34440_STATUS_OC_WARN,4,2    ## @MAX34440_STATUS_OC_WARN
	.comm	_PB_IOUT_OC_WARNING,4,2         ## @PB_IOUT_OC_WARNING
	.comm	_MAX34440_STATUS_OC_FAULT,4,2   ## @MAX34440_STATUS_OC_FAULT
	.comm	_PB_IOUT_OC_FAULT,4,2           ## @PB_IOUT_OC_FAULT
	.comm	_MAX34440_STATUS_OT_WARN,4,2    ## @MAX34440_STATUS_OT_WARN
	.comm	_PB_TEMP_OT_WARNING,4,2         ## @PB_TEMP_OT_WARNING
	.comm	_MAX34440_STATUS_OT_FAULT,4,2   ## @MAX34440_STATUS_OT_FAULT
	.comm	_PB_TEMP_OT_FAULT,4,2           ## @PB_TEMP_OT_FAULT
	.comm	_ENODATA,4,2                    ## @ENODATA
	.no_dead_strip	_max34440_read_byte_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max34440_read_byte_data
_max34440_read_byte_data:               ; @max34440_read_byte_data
	.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	x21, x2
	mov	x20, x0
	tbnz	w1, #31, LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_pmbus_set_page
	mov	x19, x0
	tbnz	w0, #31, LBB0_14
; %bb.2:
	cmp	w21, #128
	b.eq	LBB0_8
LBB0_3:
	cmp	w21, #129
	b.ne	LBB0_12
; %bb.4:
Lloh0:
	adrp	x8, _PMBUS_STATUS_MFR_SPECIFIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMBUS_STATUS_MFR_SPECIFIC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_pmbus_read_word_data
	tbnz	w0, #31, LBB0_13
; %bb.5:
Lloh3:
	adrp	x8, _MAX34440_STATUS_OC_WARN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX34440_STATUS_OC_WARN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PB_IOUT_OC_WARNING@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PB_IOUT_OC_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w19, w8, w19
Lloh9:
	adrp	x8, _MAX34440_STATUS_OC_FAULT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX34440_STATUS_OC_FAULT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.6:
Lloh12:
	adrp	x8, _PB_IOUT_OC_FAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PB_IOUT_OC_FAULT@GOTPAGEOFF]
	b	LBB0_11
LBB0_7:
	mov	w19, #0
	cmp	w21, #128
	b.ne	LBB0_3
LBB0_8:
Lloh14:
	adrp	x8, _PMBUS_STATUS_MFR_SPECIFIC@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PMBUS_STATUS_MFR_SPECIFIC@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #0
	bl	_pmbus_read_word_data
	tbnz	w0, #31, LBB0_13
; %bb.9:
Lloh17:
	adrp	x8, _MAX34440_STATUS_OT_WARN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAX34440_STATUS_OT_WARN@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	adrp	x9, _PB_TEMP_OT_WARNING@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PB_TEMP_OT_WARNING@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w8, w0
	csel	w8, wzr, w9, eq
	orr	w19, w8, w19
Lloh23:
	adrp	x8, _MAX34440_STATUS_OT_FAULT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX34440_STATUS_OT_FAULT@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_14
; %bb.10:
Lloh26:
	adrp	x8, _PB_TEMP_OT_FAULT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PB_TEMP_OT_FAULT@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	orr	w19, w8, w19
	b	LBB0_14
LBB0_12:
Lloh28:
	adrp	x8, _ENODATA@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODATA@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_14
LBB0_13:
	mov	x19, x0
LBB0_14:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PMBUS_STATUS_MFR_SPECIFIC,4,2  ; @PMBUS_STATUS_MFR_SPECIFIC
	.comm	_MAX34440_STATUS_OC_WARN,4,2    ; @MAX34440_STATUS_OC_WARN
	.comm	_PB_IOUT_OC_WARNING,4,2         ; @PB_IOUT_OC_WARNING
	.comm	_MAX34440_STATUS_OC_FAULT,4,2   ; @MAX34440_STATUS_OC_FAULT
	.comm	_PB_IOUT_OC_FAULT,4,2           ; @PB_IOUT_OC_FAULT
	.comm	_MAX34440_STATUS_OT_WARN,4,2    ; @MAX34440_STATUS_OT_WARN
	.comm	_PB_TEMP_OT_WARNING,4,2         ; @PB_TEMP_OT_WARNING
	.comm	_MAX34440_STATUS_OT_FAULT,4,2   ; @MAX34440_STATUS_OT_FAULT
	.comm	_PB_TEMP_OT_FAULT,4,2           ; @PB_TEMP_OT_FAULT
	.comm	_ENODATA,4,2                    ; @ENODATA
	.no_dead_strip	_max34440_read_byte_data
.subsections_via_symbols
