	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adcxx_probe
_adcxx_probe:                           ## @adcxx_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
	callq	_spi_get_device_id
	movl	(%rax), %ebx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movl	$3300, (%rax)                   ## imm = 0xCE4
	movl	%ebx, 4(%rax)
	movq	%rax, %r14
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_spi_set_drvdata
	xorl	%ebx, %ebx
	cmpl	$-2, 4(%r15)
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jl	LBB0_8
## %bb.3:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ad_input@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %rax
	movslq	4(%r15), %rcx
	addq	$2, %rcx
	addq	$4, %r14
	cmpq	%rcx, %rbx
	movq	%rax, %rbx
	jl	LBB0_4
## %bb.7:
	movl	%eax, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_8:
	movq	%r12, %rdi
	callq	_hwmon_device_register
	movl	%eax, 12(%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movl	12(%r15), %edi
	callq	_PTR_ERR
	movl	%eax, %r13d
	testl	%ebx, %ebx
	jg	LBB0_11
	jmp	LBB0_13
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_14
LBB0_15:
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%r13d, %r13d
	jmp	LBB0_14
LBB0_5:
	movl	%eax, %r13d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	testl	%ebx, %ebx
	jle	LBB0_13
LBB0_11:
	movl	%ebx, %ebx
	incq	%rbx
	movq	_ad_input@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %esi
	shlq	$2, %rsi
	addq	(%r14), %rsi
	movq	%r12, %rdi
	callq	_device_remove_file
	decq	%rbx
	cmpq	$1, %rbx
	ja	LBB0_12
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_14:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad_input,8,3                   ## @ad_input
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device_create_file failed.\n"

L_.str.1:                               ## @.str.1
	.asciz	"hwmon_device_register failed.\n"

	.no_dead_strip	_adcxx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adcxx_probe
_adcxx_probe:                           ; @adcxx_probe
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_spi_get_device_id
	ldr	w20, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.1:
	mov	x21, x0
	mov	w8, #3300
	stp	w8, w20, [x0]
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_init
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x21
	bl	_spi_set_drvdata
	ldr	w8, [x21, #4]
	cmn	w8, #2
	b.lt	LBB0_7
; %bb.2:
	mov	x24, #0
	mov	x23, #0
Lloh3:
	adrp	x25, _ad_input@GOTPAGE
Lloh4:
	ldr	x25, [x25, _ad_input@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x25]
	add	x1, x8, x24
	mov	x0, x19
	bl	_device_create_file
	cbnz	w0, LBB0_11
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x23, #1
	ldrsw	x9, [x21, #4]
	add	x9, x9, #2
	add	x24, x24, #4
	cmp	x23, x9
	mov	x23, x8
	b.lt	LBB0_3
; %bb.5:
	mov	x23, x8
	b	LBB0_8
LBB0_6:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_7:
	mov	w23, #0
LBB0_8:
	mov	x0, x19
	bl	_hwmon_device_register
	str	w0, [x21, #12]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x21, #12]
	bl	_PTR_ERR
	mov	x22, x0
	cmp	w23, #1
	b.ge	LBB0_12
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_mutex_unlock
	mov	w22, #0
	b	LBB0_15
LBB0_11:
	mov	x22, x0
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	cmp	w23, #1
	b.lt	LBB0_14
LBB0_12:
	mov	w8, w23
	add	x21, x8, #1
Lloh12:
	adrp	x23, _ad_input@GOTPAGE
Lloh13:
	ldr	x23, [x23, _ad_input@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #2
	ldr	x9, [x23]
	add	x1, x9, w8, uxtw #2
	mov	x0, x19
	bl	_device_remove_file
	sub	x21, x21, #1
	cmp	x21, #1
	b.hi	LBB0_13
LBB0_14:
	mov	x0, x20
	bl	_mutex_unlock
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad_input,8,3                   ; @ad_input
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device_create_file failed.\n"

l_.str.1:                               ; @.str.1
	.asciz	"hwmon_device_register failed.\n"

	.no_dead_strip	_adcxx_probe
.subsections_via_symbols
