	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thmc50_init_client
_thmc50_init_client:                    ## @thmc50_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_THMC50_REG_ANALOG_OUT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, (%r14)
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	$1, (%r14)
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_i2c_smbus_write_byte_data
LBB0_2:
	movq	_THMC50_REG_CONF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	movq	8(%r14), %rcx
	movq	_adm1022@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movl	%eax, %ecx
	andl	$128, %ecx
	je	LBB0_5
## %bb.4:
	movl	$1, 16(%r14)
LBB0_5:
	orl	$1, %eax
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_THMC50_REG_ANALOG_OUT,4,2      ## @THMC50_REG_ANALOG_OUT
	.comm	_THMC50_REG_CONF,4,2            ## @THMC50_REG_CONF
	.comm	_adm1022,8,3                    ## @adm1022
	.no_dead_strip	_thmc50_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thmc50_init_client
_thmc50_init_client:                    ; @thmc50_init_client
	.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, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
Lloh0:
	adrp	x21, _THMC50_REG_ANALOG_OUT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _THMC50_REG_ANALOG_OUT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	str	w0, [x20]
	cbnz	w0, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x20]
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #1
	bl	_i2c_smbus_write_byte_data
LBB0_2:
Lloh2:
	adrp	x21, _THMC50_REG_CONF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _THMC50_REG_CONF@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _adm1022@GOTPAGE
Lloh5:
	ldr	x9, [x9, _adm1022@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	and	w10, w0, #0x80
	cmp	x8, x9
	ccmp	w10, #0, #4, eq
	b.eq	LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x20, #16]
LBB0_4:
	orr	w2, w0, #0x1
	ldr	w1, [x21]
	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
	b	_i2c_smbus_write_byte_data
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_THMC50_REG_ANALOG_OUT,4,2      ; @THMC50_REG_ANALOG_OUT
	.comm	_THMC50_REG_CONF,4,2            ; @THMC50_REG_CONF
	.comm	_adm1022,8,3                    ; @adm1022
	.no_dead_strip	_thmc50_init_client
.subsections_via_symbols
