	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm70_probe
_lm70_probe:                            ## @lm70_probe
	.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, %rbx
	movq	_lm70_of_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %r14
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_spi_get_device_id
LBB0_2:
	movl	(%rax), %r12d
	movq	_SPI_CPOL@GOTPCREL(%rip), %rax
	movq	_SPI_CPHA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_5
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_4:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %r15
	movq	%rax, %rdi
	addq	$16, %rdi
	callq	_mutex_init
	movl	%r12d, (%r15)
	movq	%rbx, 8(%r15)
	movl	4(%rbx), %esi
	movq	_lm70_groups@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_lm70_of_ids,4,2                ## @lm70_of_ids
	.comm	_SPI_CPOL,4,2                   ## @SPI_CPOL
	.comm	_SPI_CPHA,4,2                   ## @SPI_CPHA
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lm70_groups,4,2                ## @lm70_groups
	.no_dead_strip	_lm70_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm70_probe
_lm70_probe:                            ; @lm70_probe
	.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	x20, x0
Lloh0:
	adrp	x8, _lm70_of_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lm70_of_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x19, x20, #8
	mov	x1, x19
	bl	_of_match_device
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_spi_get_device_id
LBB0_2:
	ldr	w22, [x0]
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _SPI_CPOL@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SPI_CPOL@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _SPI_CPHA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SPI_CPHA@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
	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
LBB0_5:
Lloh11:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #24
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.6:
	mov	x21, x0
	add	x0, x0, #16
	bl	_mutex_init
	str	w22, [x21]
	str	x20, [x21, #8]
	ldr	w1, [x20, #4]
Lloh14:
	adrp	x8, _lm70_groups@GOTPAGE
Lloh15:
	ldr	x8, [x8, _lm70_groups@GOTPAGEOFF]
Lloh16:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_hwmon_device_register_with_groups
	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	_PTR_ERR_OR_ZERO
LBB0_7:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_lm70_of_ids,4,2                ; @lm70_of_ids
	.comm	_SPI_CPOL,4,2                   ; @SPI_CPOL
	.comm	_SPI_CPHA,4,2                   ; @SPI_CPHA
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lm70_groups,4,2                ; @lm70_groups
	.no_dead_strip	_lm70_probe
.subsections_via_symbols
