	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max5481_probe
_max5481_probe:                         ## @max5481_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, %r14
	callq	_spi_get_device_id
	movq	%rax, %r15
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_dev_set_drvdata
	movq	%rbx, %rdi
	callq	_iio_priv
	movq	%rax, %r12
	movq	%r14, 8(%rax)
	movq	%r14, %rdi
	callq	_of_device_get_match_data
	movq	%rax, (%r12)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	_max5481_cfg@GOTPCREL(%rip), %rax
	movq	(%r15), %rcx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movq	%rcx, (%r12)
LBB0_4:
	movl	8(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	%r14, 24(%rbx)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_max5481_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_max5481_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%rbx)
	callq	_ARRAY_SIZE
	movl	%eax, (%rbx)
	movq	_MAX5481_COPY_NV_TO_AB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_max5481_write_cmd
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iio_device_register            ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max5481_cfg,8,3                ## @max5481_cfg
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_max5481_info,4,2               ## @max5481_info
	.comm	_max5481_channels,4,2           ## @max5481_channels
	.comm	_MAX5481_COPY_NV_TO_AB,4,2      ## @MAX5481_COPY_NV_TO_AB
	.no_dead_strip	_max5481_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max5481_probe
_max5481_probe:                         ; @max5481_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
	bl	_spi_get_device_id
	mov	x21, x0
	mov	x0, x20
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x0, x20
	mov	x1, x19
	bl	_dev_set_drvdata
	mov	x0, x19
	bl	_iio_priv
	mov	x22, x0
	str	x20, [x0, #8]
	mov	x0, x20
	bl	_of_device_get_match_data
	str	x0, [x22]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _max5481_cfg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _max5481_cfg@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #2
	str	x8, [x22]
LBB0_3:
	ldr	w8, [x21, #8]
	str	w8, [x19, #32]
	str	x20, [x19, #24]
Lloh3:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _max5481_info@GOTPAGE
Lloh7:
	ldr	x9, [x9, _max5481_info@GOTPAGEOFF]
	str	w8, [x19, #16]
	str	x9, [x19, #8]
Lloh8:
	adrp	x8, _max5481_channels@GOTPAGE
Lloh9:
	ldr	x8, [x8, _max5481_channels@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	w0, [x19, #4]
	bl	_ARRAY_SIZE
	str	w0, [x19]
Lloh11:
	adrp	x8, _MAX5481_COPY_NV_TO_AB@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX5481_COPY_NV_TO_AB@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #0
	bl	_max5481_write_cmd
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x0, x19
	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	_iio_device_register
LBB0_5:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max5481_cfg,8,3                ; @max5481_cfg
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_max5481_info,4,2               ; @max5481_info
	.comm	_max5481_channels,4,2           ; @max5481_channels
	.comm	_MAX5481_COPY_NV_TO_AB,4,2      ; @MAX5481_COPY_NV_TO_AB
	.no_dead_strip	_max5481_probe
.subsections_via_symbols
