	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmbus_set_page                 ## -- Begin function pmbus_set_page
	.p2align	4, 0x90
_pmbus_set_page:                        ## @pmbus_set_page
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r12
	callq	_i2c_get_clientdata
	xorl	%r14d, %r14d
	testl	%ebx, %ebx
	js	LBB0_4
## %bb.1:
	movq	%rax, %r15
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	8(%r15), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movq	_PMBUS_PAGE_VIRTUAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_5
LBB0_3:
	movl	%ebx, (%r15)
	jmp	LBB0_4
LBB0_5:
	movq	_PMBUS_PAGE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.6:
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	cmpl	%ebx, %eax
	je	LBB0_3
## %bb.8:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_4
LBB0_10:
	movl	%eax, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PMBUS_PAGE_VIRTUAL,4,2         ## @PMBUS_PAGE_VIRTUAL
	.comm	_PMBUS_PAGE,4,2                 ## @PMBUS_PAGE
	.comm	_EIO,4,2                        ## @EIO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmbus_set_page                 ; -- Begin function pmbus_set_page
	.p2align	2
_pmbus_set_page:                        ; @pmbus_set_page
	.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, x1
	mov	x21, x0
	bl	_i2c_get_clientdata
	tbnz	w19, #31, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	ldr	x8, [x20, #8]
	ldr	x8, [x8]
	ldr	w8, [x8, w19, uxtw #2]
Lloh0:
	adrp	x9, _PMBUS_PAGE_VIRTUAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PMBUS_PAGE_VIRTUAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_4:
	mov	w0, #0
	str	w19, [x20]
LBB0_5:
	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_6:
Lloh3:
	adrp	x22, _PMBUS_PAGE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _PMBUS_PAGE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x19
	bl	_i2c_smbus_write_byte_data
	tbnz	w0, #31, LBB0_5
; %bb.7:
	ldr	w1, [x22]
	mov	x0, x21
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_5
; %bb.8:
	cmp	w0, w19
	b.eq	LBB0_4
; %bb.9:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PMBUS_PAGE_VIRTUAL,4,2         ; @PMBUS_PAGE_VIRTUAL
	.comm	_PMBUS_PAGE,4,2                 ; @PMBUS_PAGE
	.comm	_EIO,4,2                        ; @EIO
.subsections_via_symbols
