	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp421_init_client
_tmp421_init_client:                    ## @tmp421_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	%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
	movq	%rdi, %r15
	movq	_TMP421_CONVERSION_RATE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_i2c_smbus_write_byte_data
	movq	_TMP421_CONFIG_REG_1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_TMP421_CONFIG_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	notl	%ebx
	andl	%r12d, %ebx
	xorl	%r14d, %r14d
	cmpl	%r12d, %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_i2c_smbus_write_byte_data
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	movl	%r12d, %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	_TMP421_CONVERSION_RATE_REG,4,2 ## @TMP421_CONVERSION_RATE_REG
	.comm	_TMP421_CONFIG_REG_1,4,2        ## @TMP421_CONFIG_REG_1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not read configuration register (%d)\n"

	.comm	_TMP421_CONFIG_SHUTDOWN,4,2     ## @TMP421_CONFIG_SHUTDOWN
L_.str.1:                               ## @.str.1
	.asciz	"Enable monitoring chip\n"

	.no_dead_strip	_tmp421_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp421_init_client
_tmp421_init_client:                    ; @tmp421_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
Lloh0:
	adrp	x8, _TMP421_CONVERSION_RATE_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMP421_CONVERSION_RATE_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #5
	bl	_i2c_smbus_write_byte_data
Lloh3:
	adrp	x22, _TMP421_CONFIG_REG_1@GOTPAGE
Lloh4:
	ldr	x22, [x22, _TMP421_CONFIG_REG_1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _TMP421_CONFIG_SHUTDOWN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TMP421_CONFIG_SHUTDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	bic	w21, w20, w8
	cmp	w21, w20
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_i2c_smbus_write_byte_data
LBB0_3:
	mov	w20, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TMP421_CONVERSION_RATE_REG,4,2 ; @TMP421_CONVERSION_RATE_REG
	.comm	_TMP421_CONFIG_REG_1,4,2        ; @TMP421_CONFIG_REG_1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not read configuration register (%d)\n"

	.comm	_TMP421_CONFIG_SHUTDOWN,4,2     ; @TMP421_CONFIG_SHUTDOWN
l_.str.1:                               ; @.str.1
	.asciz	"Enable monitoring chip\n"

	.no_dead_strip	_tmp421_init_client
.subsections_via_symbols
