	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ad_dpot_probe                  ## -- Begin function ad_dpot_probe
	.p2align	4, 0x90
_ad_dpot_probe:                         ## @ad_dpot_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%r13, %rdi
	addq	$40, %rdi
	callq	_mutex_init
	movl	(%r15), %eax
	movl	%eax, 36(%r13)
	movq	%rbx, (%r13)
	movq	%rbx, %rdi
	callq	_DPOT_MAX_POS
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, 8(%r13)
	decl	%edx
	movl	%edx, 12(%r13)
	movq	%rbx, %rdi
	callq	_DPOT_FEAT
	movl	%eax, 16(%r13)
	movq	%rbx, %rdi
	callq	_DPOT_UID
	movl	%eax, 32(%r13)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_DPOT_WIPERS
	movl	%eax, 20(%r13)
	movq	_DPOT_RDAC0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	_MAX_RDACS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %r14d
	jge	LBB0_10
## %bb.3:
	movslq	%r14d, %rbx
	incq	%rbx
	btl	%r14d, %eax
	jae	LBB0_8
	.p2align	4, 0x90
LBB0_5:
	movl	16(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_ad_dpot_add_files
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	_F_RDACS_WONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	je	LBB0_8
## %bb.7:
	movl	8(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	24(%r13), %rax
	movl	%ecx, -4(%rax,%rbx,4)
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	20(%r13), %eax
	incq	%rbx
	incl	%r14d
	btl	%r14d, %eax
	jb	LBB0_5
	jmp	LBB0_8
LBB0_10:
	movq	_F_CMD_INC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%r13)
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_13
## %bb.11:
	movq	_ad525x_group_commands@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_sysfs_create_group
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_22
LBB0_13:
	movl	8(%r13), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_23
LBB0_14:
	movl	%eax, %r15d
	movq	_DPOT_RDAC0@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jge	LBB0_15
## %bb.16:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incl	%ebx
	cmpl	%eax, %ebx
	jge	LBB0_20
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	20(%r13), %ecx
	btl	%ebx, %ecx
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movl	16(%r13), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_ad_dpot_remove_files
	movl	(%r12), %eax
	jmp	LBB0_19
LBB0_15:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_20:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_21:
	movq	%r13, %rdi
	callq	_kfree
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_dev_set_drvdata
LBB0_22:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_23:
	movl	%r15d, %eax
	addq	$24, %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	_DPOT_RDAC0,4,2                 ## @DPOT_RDAC0
	.comm	_MAX_RDACS,4,2                  ## @MAX_RDACS
	.comm	_F_RDACS_WONLY,4,2              ## @F_RDACS_WONLY
	.comm	_F_CMD_INC,4,2                  ## @F_CMD_INC
	.comm	_ad525x_group_commands,4,2      ## @ad525x_group_commands
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to register sysfs hooks\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s %d-Position Digital Potentiometer registered\n"

L_.str.2:                               ## @.str.2
	.asciz	"failed to create client for %s ID 0x%lX\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ad_dpot_probe                  ; -- Begin function ad_dpot_probe
	.p2align	2
_ad_dpot_probe:                         ; @ad_dpot_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	mov	x1, x22
	bl	_dev_set_drvdata
	add	x0, x22, #40
	bl	_mutex_init
	ldr	w8, [x23]
	str	w8, [x22, #36]
	str	x21, [x22]
	mov	x0, x21
	bl	_DPOT_MAX_POS
	mov	w8, #1
	lsl	w8, w8, w0
	sub	w9, w8, #1
	stp	w8, w9, [x22, #8]
	mov	x0, x21
	bl	_DPOT_FEAT
	str	w0, [x22, #16]
	mov	x0, x21
	bl	_DPOT_UID
	str	w0, [x22, #32]
	mov	x0, x21
	bl	_DPOT_WIPERS
Lloh3:
	adrp	x26, _DPOT_RDAC0@GOTPAGE
Lloh4:
	ldr	x26, [x26, _DPOT_RDAC0@GOTPAGEOFF]
	str	w0, [x22, #20]
	ldrsw	x24, [x26]
Lloh5:
	adrp	x25, _MAX_RDACS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MAX_RDACS@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w24, w8
	b.ge	LBB0_8
; %bb.2:
Lloh7:
	adrp	x27, _F_RDACS_WONLY@GOTPAGE
Lloh8:
	ldr	x27, [x27, _F_RDACS_WONLY@GOTPAGEOFF]
	lsr	w8, w0, w24
	tbz	w8, #0, LBB0_6
LBB0_3:
	ldr	w1, [x22, #16]
	mov	x0, x20
	mov	x2, x24
	bl	_ad_dpot_add_files
	cbnz	w0, LBB0_16
; %bb.4:
	ldr	w8, [x22, #16]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x22, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	ldr	x9, [x22, #24]
	str	w8, [x9, x24, lsl #2]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x25]
	cmp	x24, x8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x22, #20]
	lsr	w8, w0, w24
	tbnz	w8, #0, LBB0_3
	b	LBB0_6
LBB0_8:
	ldr	w8, [x22, #16]
Lloh9:
	adrp	x9, _F_CMD_INC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _F_CMD_INC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_14
; %bb.9:
Lloh12:
	adrp	x1, _ad525x_group_commands@GOTPAGE
Lloh13:
	ldr	x1, [x1, _ad525x_group_commands@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_create_group
	cbz	w0, LBB0_14
; %bb.10:
	mov	x23, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_11:
	mov	x0, x22
	bl	_kfree
	mov	x0, x20
	mov	x1, #0
	bl	_dev_set_drvdata
	b	LBB0_13
LBB0_12:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_13:
	stp	x19, x21, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_15
LBB0_14:
	ldr	w3, [x22, #8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_dev_info
	mov	w23, #0
LBB0_15:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	mov	x23, x0
	ldr	w24, [x26]
	ldr	w8, [x25]
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_18 Depth=1
	add	w24, w24, #1
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	cmp	w24, w8
	b.ge	LBB0_11
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w9, [x22, #20]
	lsr	w9, w9, w24
	tbz	w9, #0, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	w1, [x22, #16]
	mov	x0, x20
	mov	x2, x24
	bl	_ad_dpot_remove_files
	ldr	w8, [x25]
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DPOT_RDAC0,4,2                 ; @DPOT_RDAC0
	.comm	_MAX_RDACS,4,2                  ; @MAX_RDACS
	.comm	_F_RDACS_WONLY,4,2              ; @F_RDACS_WONLY
	.comm	_F_CMD_INC,4,2                  ; @F_CMD_INC
	.comm	_ad525x_group_commands,4,2      ; @ad525x_group_commands
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to register sysfs hooks\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s %d-Position Digital Potentiometer registered\n"

l_.str.2:                               ; @.str.2
	.asciz	"failed to create client for %s ID 0x%lX\n"

.subsections_via_symbols
