	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp4922_probe
_mcp4922_probe:                         ## @mcp4922_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, %r15
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r14
	movq	%r15, 8(%rax)
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_regulator_get
	movl	%eax, 4(%r14)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	4(%r14), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_3:
	movl	4(%r14), %edi
	callq	_regulator_enable
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_5:
	movl	4(%r14), %edi
	callq	_regulator_get_voltage
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%r15, %rdi
	callq	_spi_get_device_id
	movq	%r15, 24(%r12)
	movq	_mcp4922_info@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r12)
	movq	_mcp4922_channels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax), %rdx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ecx, 8(%r12)
	movq	_MCP4922_NUM_CHANNELS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%r12)
	movl	8(%rax), %eax
	movl	%eax, (%r12)
	movq	%r12, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_10
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
LBB0_10:
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	4(%r14), %edi
	callq	_regulator_disable
	jmp	LBB0_11
LBB0_8:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

L_.str.1:                               ## @.str.1
	.asciz	"Vref regulator not specified\n"

L_.str.2:                               ## @.str.2
	.asciz	"Failed to enable vref regulator: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed to read vref regulator: %d\n"

	.comm	_mcp4922_info,4,2               ## @mcp4922_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_mcp4922_channels,8,3           ## @mcp4922_channels
	.comm	_MCP4922_NUM_CHANNELS,4,2       ## @MCP4922_NUM_CHANNELS
L_.str.4:                               ## @.str.4
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_mcp4922_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp4922_probe
_mcp4922_probe:                         ; @mcp4922_probe
	.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
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	str	x19, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_devm_regulator_get
	str	w0, [x20, #4]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w0, [x20, #4]
	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
	b	_PTR_ERR
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_4:
	ldr	w0, [x20, #4]
	bl	_regulator_enable
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
	str	x22, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_6:
	ldr	w0, [x20, #4]
	bl	_regulator_get_voltage
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
	mov	w8, #19923
	movk	w8, #4194, lsl #16
	umull	x8, w22, w8
	lsr	x8, x8, #38
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x21
	bl	_spi_set_drvdata
	mov	x0, x19
	bl	_spi_get_device_id
Lloh9:
	adrp	x8, _mcp4922_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mcp4922_info@GOTPAGEOFF]
	stp	x8, x19, [x21, #16]
Lloh11:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _mcp4922_channels@GOTPAGE
Lloh15:
	ldr	x9, [x9, _mcp4922_channels@GOTPAGEOFF]
	str	w8, [x21, #12]
Lloh16:
	ldr	x8, [x9]
	ldr	x9, [x0]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x21, #8]
Lloh17:
	adrp	x8, _MCP4922_NUM_CHANNELS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MCP4922_NUM_CHANNELS@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	ldr	w9, [x0, #8]
	stp	w9, w8, [x21]
	mov	x0, x21
	bl	_iio_device_register
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.8:
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_9:
	str	x22, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	ldr	w0, [x20, #4]
	bl	_regulator_disable
LBB0_11:
	mov	x0, x22
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

l_.str.1:                               ; @.str.1
	.asciz	"Vref regulator not specified\n"

l_.str.2:                               ; @.str.2
	.asciz	"Failed to enable vref regulator: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed to read vref regulator: %d\n"

	.comm	_mcp4922_info,4,2               ; @mcp4922_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_mcp4922_channels,8,3           ; @mcp4922_channels
	.comm	_MCP4922_NUM_CHANNELS,4,2       ; @MCP4922_NUM_CHANNELS
l_.str.4:                               ; @.str.4
	.asciz	"Failed to register iio device: %d\n"

	.no_dead_strip	_mcp4922_probe
.subsections_via_symbols
