	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -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), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_TMP421_CONFIG_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	xorl	%r14d, %r14d
	cmpl	%eax, %ebx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movl	(%r12), %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	%eax, %edx
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	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	_ENODEV,4,2                     ## @ENODEV
	.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	x21, _TMP421_CONFIG_REG_1@GOTPAGE
Lloh4:
	ldr	x21, [x21, _TMP421_CONFIG_REG_1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x2, 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	w20, w2, w8
	cmp	w20, w2
	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, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_i2c_smbus_write_byte_data
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
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
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_ENODEV,4,2                     ; @ENODEV
	.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
