	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ads7871_probe
_ads7871_probe:                         ## @ads7871_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	%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, %r12
	leaq	12(%rdi), %r14
	movq	_SPI_MODE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movl	$8, (%rdi)
	callq	_spi_setup
	movq	_REG_SER_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ads7871_write_reg8
	movq	_REG_AD_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_ads7871_write_reg8
	movq	_OSC_OSCR_BM@GOTPCREL(%rip), %rax
	movq	_OSC_OSCE_BM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_OSC_REFE_BM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_OSC_BUFE_BM@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_REG_OSC_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_ads7871_write_reg8
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ads7871_read_reg8
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	cmpl	%r13d, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%r12, (%rax)
	movl	4(%r12), %esi
	movq	_ads7871_groups@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movq	%rax, %rdx
	callq	_devm_hwmon_device_register_with_groups
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR_OR_ZERO                ## TAILCALL
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
LBB0_4:
	subl	(%rax), %r15d
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_MODE_0,4,2                 ## @SPI_MODE_0
	.comm	_REG_SER_CONTROL,4,2            ## @REG_SER_CONTROL
	.comm	_REG_AD_CONTROL,4,2             ## @REG_AD_CONTROL
	.comm	_OSC_OSCR_BM,4,2                ## @OSC_OSCR_BM
	.comm	_OSC_OSCE_BM,4,2                ## @OSC_OSCE_BM
	.comm	_OSC_REFE_BM,4,2                ## @OSC_REFE_BM
	.comm	_OSC_BUFE_BM,4,2                ## @OSC_BUFE_BM
	.comm	_REG_OSC_CONTROL,4,2            ## @REG_OSC_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"REG_OSC_CONTROL write:%x, read:%x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ads7871_groups,4,2             ## @ads7871_groups
	.no_dead_strip	_ads7871_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ads7871_probe
_ads7871_probe:                         ; @ads7871_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
	add	x19, x0, #12
Lloh0:
	adrp	x8, _SPI_MODE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_MODE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	mov	w8, #8
	str	w8, [x0]
	bl	_spi_setup
Lloh3:
	adrp	x8, _REG_SER_CONTROL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_SER_CONTROL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ads7871_write_reg8
Lloh6:
	adrp	x8, _REG_AD_CONTROL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _REG_AD_CONTROL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ads7871_write_reg8
Lloh9:
	adrp	x8, _OSC_OSCR_BM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OSC_OSCR_BM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _OSC_OSCE_BM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _OSC_OSCE_BM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _OSC_REFE_BM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OSC_REFE_BM@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _OSC_BUFE_BM@GOTPAGE
Lloh19:
	ldr	x10, [x10, _OSC_BUFE_BM@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh20:
	ldr	w9, [x10]
	orr	w21, w8, w9
Lloh21:
	adrp	x22, _REG_OSC_CONTROL@GOTPAGE
Lloh22:
	ldr	x22, [x22, _REG_OSC_CONTROL@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	_ads7871_write_reg8
	ldr	w1, [x22]
	mov	x0, x20
	bl	_ads7871_read_reg8
	mov	x22, x0
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	mov	x3, x22
	bl	_dev_dbg
	cmp	w21, w22
	b.ne	LBB0_3
; %bb.1:
Lloh25:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x2, x0
	str	x20, [x0]
	ldr	w1, [x20, #4]
Lloh28:
	adrp	x8, _ads7871_groups@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ads7871_groups@GOTPAGEOFF]
Lloh30:
	ldr	w3, [x8]
	mov	x0, x19
	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_3:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	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
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_MODE_0,4,2                 ; @SPI_MODE_0
	.comm	_REG_SER_CONTROL,4,2            ; @REG_SER_CONTROL
	.comm	_REG_AD_CONTROL,4,2             ; @REG_AD_CONTROL
	.comm	_OSC_OSCR_BM,4,2                ; @OSC_OSCR_BM
	.comm	_OSC_OSCE_BM,4,2                ; @OSC_OSCE_BM
	.comm	_OSC_REFE_BM,4,2                ; @OSC_REFE_BM
	.comm	_OSC_BUFE_BM,4,2                ; @OSC_BUFE_BM
	.comm	_REG_OSC_CONTROL,4,2            ; @REG_OSC_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"REG_OSC_CONTROL write:%x, read:%x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ads7871_groups,4,2             ; @ads7871_groups
	.no_dead_strip	_ads7871_probe
.subsections_via_symbols
