	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max31856_init
_max31856_init:                         ## @max31856_init
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_MAX31856_CR0_REG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-36(%rbp), %rdx
	movl	$1, %ecx
	callq	_max31856_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_MAX31856_CR0_AUTOCONVERT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	notl	%edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_max31856_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_MAX31856_CR1_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_max31856_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MAX31856_TC_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	-40(%rbp), %edx
	orl	(%rbx), %edx
	movl	%edx, -40(%rbp)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_max31856_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_MAX31856_CR0_OCFAULT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	-36(%rbp), %eax
	movq	_MAX31856_CR0_OCFAULT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_MAX31856_CR0_1SHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	orl	(%r15), %edx
	movl	%edx, -36(%rbp)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_max31856_write
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX31856_CR0_REG,4,2           ## @MAX31856_CR0_REG
	.comm	_MAX31856_CR0_AUTOCONVERT,4,2   ## @MAX31856_CR0_AUTOCONVERT
	.comm	_MAX31856_CR1_REG,4,2           ## @MAX31856_CR1_REG
	.comm	_MAX31856_TC_TYPE_MASK,4,2      ## @MAX31856_TC_TYPE_MASK
	.comm	_MAX31856_CR0_OCFAULT_MASK,4,2  ## @MAX31856_CR0_OCFAULT_MASK
	.comm	_MAX31856_CR0_OCFAULT,4,2       ## @MAX31856_CR0_OCFAULT
	.comm	_MAX31856_CR0_1SHOT,4,2         ## @MAX31856_CR0_1SHOT
	.no_dead_strip	_max31856_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max31856_init
_max31856_init:                         ; @max31856_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, _MAX31856_CR0_REG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX31856_CR0_REG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	w3, #1
	bl	_max31856_read
	cbnz	w0, LBB0_5
; %bb.1:
Lloh2:
	adrp	x21, _MAX31856_CR0_AUTOCONVERT@GOTPAGE
Lloh3:
	ldr	x21, [x21, _MAX31856_CR0_AUTOCONVERT@GOTPAGEOFF]
	ldr	w8, [x21]
	ldr	w9, [sp, #12]
	bic	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_max31856_write
	cbnz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x22, _MAX31856_CR1_REG@GOTPAGE
Lloh5:
	ldr	x22, [x22, _MAX31856_CR1_REG@GOTPAGEOFF]
	ldr	w1, [x22]
	add	x2, sp, #8
	mov	x0, x19
	mov	w3, #1
	bl	_max31856_read
	cbnz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _MAX31856_TC_TYPE_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX31856_TC_TYPE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	ldr	w9, [x19]
	orr	w2, w9, w8
	str	w2, [sp, #8]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_max31856_write
	cbnz	w0, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _MAX31856_CR0_OCFAULT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX31856_CR0_OCFAULT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	bic	w8, w9, w8
Lloh12:
	adrp	x9, _MAX31856_CR0_OCFAULT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _MAX31856_CR0_OCFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _MAX31856_CR0_1SHOT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MAX31856_CR0_1SHOT@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	bic	w8, w8, w9
	ldr	w9, [x21]
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_max31856_write
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX31856_CR0_REG,4,2           ; @MAX31856_CR0_REG
	.comm	_MAX31856_CR0_AUTOCONVERT,4,2   ; @MAX31856_CR0_AUTOCONVERT
	.comm	_MAX31856_CR1_REG,4,2           ; @MAX31856_CR1_REG
	.comm	_MAX31856_TC_TYPE_MASK,4,2      ; @MAX31856_TC_TYPE_MASK
	.comm	_MAX31856_CR0_OCFAULT_MASK,4,2  ; @MAX31856_CR0_OCFAULT_MASK
	.comm	_MAX31856_CR0_OCFAULT,4,2       ; @MAX31856_CR0_OCFAULT
	.comm	_MAX31856_CR0_1SHOT,4,2         ; @MAX31856_CR0_1SHOT
	.no_dead_strip	_max31856_init
.subsections_via_symbols
