	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adm1025_init_client
_adm1025_init_client:                   ## @adm1025_init_client
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_vid_which_vrm
	movl	%eax, (%rbx)
	xorl	%edi, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_2:
	movl	$1, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_4:
	movl	$2, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movl	$2, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_6:
	movl	$3, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movl	$3, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_8:
	movl	$4, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movl	$4, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_10:
	movl	$5, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movl	$5, %edi
	callq	_ADM1025_REG_IN_MAX
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_12:
	xorl	%edi, %edi
	callq	_ADM1025_REG_TEMP_HIGH
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	xorl	%edi, %edi
	callq	_ADM1025_REG_TEMP_HIGH
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$127, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_14:
	movl	$1, %edi
	callq	_ADM1025_REG_TEMP_HIGH
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movl	$1, %edi
	callq	_ADM1025_REG_TEMP_HIGH
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$127, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_16:
	movq	_ADM1025_REG_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_i2c_smbus_read_byte_data
	testb	$1, %al
	jne	LBB0_17
## %bb.18:
	movl	(%rbx), %esi
	andl	$126, %eax
	orl	$1, %eax
	movq	%r14, %rdi
	movl	%eax, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADM1025_REG_CONFIG,4,2         ## @ADM1025_REG_CONFIG
	.no_dead_strip	_adm1025_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adm1025_init_client
_adm1025_init_client:                   ; @adm1025_init_client
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	bl	_vid_which_vrm
	str	w0, [x20]
	mov	w0, #0
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_2
; %bb.1:
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_2:
	mov	w0, #1
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_4
; %bb.3:
	mov	w0, #1
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_4:
	mov	w0, #2
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_6
; %bb.5:
	mov	w0, #2
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_6:
	mov	w0, #3
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_8
; %bb.7:
	mov	w0, #3
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_8:
	mov	w0, #4
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_10
; %bb.9:
	mov	w0, #4
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_10:
	mov	w0, #5
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_12
; %bb.11:
	mov	w0, #5
	bl	_ADM1025_REG_IN_MAX
	mov	x1, x0
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_12:
	mov	w0, #0
	bl	_ADM1025_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_14
; %bb.13:
	bl	_ADM1025_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #127
	bl	_i2c_smbus_write_byte_data
LBB0_14:
	mov	w0, #1
	bl	_ADM1025_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	cbnz	w0, LBB0_16
; %bb.15:
	mov	w0, #1
	bl	_ADM1025_REG_TEMP_HIGH
	mov	x1, x0
	mov	x0, x19
	mov	w2, #127
	bl	_i2c_smbus_write_byte_data
LBB0_16:
Lloh0:
	adrp	x20, _ADM1025_REG_CONFIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _ADM1025_REG_CONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #0, LBB0_18
; %bb.17:
	ldr	w1, [x20]
	and	w8, w0, #0x7e
	orr	w2, w8, #0x1
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_smbus_write_byte_data
LBB0_18:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ADM1025_REG_CONFIG,4,2         ; @ADM1025_REG_CONFIG
	.no_dead_strip	_adm1025_init_client
.subsections_via_symbols
