	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcp4131_probe
_mcp4131_probe:                         ## @mcp4131_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_spi_set_drvdata
	movq	%r14, 16(%r15)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
	movq	_mcp4131_cfg@GOTPCREL(%rip), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, (%r15)
LBB0_4:
	movq	%r15, %rdi
	addq	$8, %rdi
	callq	_mutex_init
	movq	%r14, 24(%rbx)
	movq	_mcp4131_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	_mcp4131_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	movq	(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	%r14, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_iio_device_register
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %r15d
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_7
LBB0_5:
	xorl	%r15d, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mcp4131_cfg,8,3                ## @mcp4131_cfg
	.comm	_mcp4131_info,4,2               ## @mcp4131_info
	.comm	_mcp4131_channels,4,2           ## @mcp4131_channels
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to register %s\n"

	.no_dead_strip	_mcp4131_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcp4131_probe
_mcp4131_probe:                         ; @mcp4131_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	x19, x0
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	str	x19, [x21, #16]
	mov	x0, x19
	bl	_of_device_get_match_data
	str	x0, [x21]
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _mcp4131_cfg@GOTPAGE
Lloh1:
	ldr	x9, [x9, _mcp4131_cfg@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x8, x9, x8, lsl #2
	str	x8, [x21]
LBB0_3:
	add	x0, x21, #8
	bl	_mutex_init
Lloh3:
	adrp	x8, _mcp4131_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mcp4131_info@GOTPAGEOFF]
Lloh5:
	adrp	x9, _mcp4131_channels@GOTPAGE
Lloh6:
	ldr	x9, [x9, _mcp4131_channels@GOTPAGEOFF]
	stp	x8, x19, [x20, #16]
Lloh7:
	ldr	w8, [x9]
	ldr	x9, [x21]
	ldr	w9, [x9]
	stp	w9, w8, [x20, #4]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_devm_iio_device_register
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	w2, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mcp4131_cfg,8,3                ; @mcp4131_cfg
	.comm	_mcp4131_info,4,2               ; @mcp4131_info
	.comm	_mcp4131_channels,4,2           ; @mcp4131_channels
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to register %s\n"

	.no_dead_strip	_mcp4131_probe
.subsections_via_symbols
