	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tmp401_init_client
_tmp401_init_client:                    ## @tmp401_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TMP401_CONVERSION_RATE_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, %edx
	callq	_i2c_smbus_write_byte_data
	movq	_TMP401_CONFIG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_3
## %bb.1:
	movq	_TMP401_CONFIG_SHUTDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	cmpl	%eax, %edx
	jne	LBB0_4
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_warn                       ## TAILCALL
LBB0_4:
	movq	_TMP401_CONFIG_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_i2c_smbus_write_byte_data      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TMP401_CONVERSION_RATE_WRITE,4,2 ## @TMP401_CONVERSION_RATE_WRITE
	.comm	_TMP401_CONFIG_READ,4,2         ## @TMP401_CONFIG_READ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Initialization failed!\n"

	.comm	_TMP401_CONFIG_SHUTDOWN,4,2     ## @TMP401_CONFIG_SHUTDOWN
	.comm	_TMP401_CONFIG_WRITE,4,2        ## @TMP401_CONFIG_WRITE
	.no_dead_strip	_tmp401_init_client
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tmp401_init_client
_tmp401_init_client:                    ; @tmp401_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
Lloh0:
	adrp	x8, _TMP401_CONVERSION_RATE_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TMP401_CONVERSION_RATE_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #5
	bl	_i2c_smbus_write_byte_data
Lloh3:
	adrp	x8, _TMP401_CONFIG_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TMP401_CONFIG_READ@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _TMP401_CONFIG_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TMP401_CONFIG_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	bic	w2, w0, w8
	cmp	w2, w0
	b.ne	LBB0_4
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_warn
LBB0_4:
Lloh11:
	adrp	x8, _TMP401_CONFIG_WRITE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TMP401_CONFIG_WRITE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_TMP401_CONVERSION_RATE_WRITE,4,2 ; @TMP401_CONVERSION_RATE_WRITE
	.comm	_TMP401_CONFIG_READ,4,2         ; @TMP401_CONFIG_READ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Initialization failed!\n"

	.comm	_TMP401_CONFIG_SHUTDOWN,4,2     ; @TMP401_CONFIG_SHUTDOWN
	.comm	_TMP401_CONFIG_WRITE,4,2        ; @TMP401_CONFIG_WRITE
	.no_dead_strip	_tmp401_init_client
.subsections_via_symbols
