	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max1118_probe
_max1118_probe:                         ## @max1118_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, %rbx
	callq	_spi_get_device_id
	movq	%rax, %r14
	movq	%rbx, %rdi
	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, %r15
	movq	%rbx, 8(%rax)
	leaq	4(%rax), %rdi
	callq	_mutex_init
	movq	(%r14), %rax
	movq	_max1118@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_devm_regulator_get
	movl	%eax, (%r15)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dev_err
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_11
LBB0_4:
	movl	(%r15), %edi
	callq	_regulator_enable
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_11
LBB0_5:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_spi_set_drvdata
	movq	%rbx, %rdi
	callq	_spi_get_device_id
	movl	8(%rax), %eax
	movl	%eax, 32(%r12)
	movq	%rbx, 24(%r12)
	movq	_max1118_info@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r12)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	movq	_max1118_channels@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%edi, 4(%r12)
	callq	_ARRAY_SIZE
	movl	%eax, (%r12)
	xorl	%r13d, %r13d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_max1118_read
	movq	_max1118_trigger_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_iio_triggered_buffer_setup
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	movq	%r12, %rdi
	callq	_iio_device_register
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_iio_triggered_buffer_cleanup
LBB0_8:
	movq	(%r14), %rax
	movq	_max1118@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	movl	(%r15), %edi
	callq	_regulator_disable
LBB0_10:
	movl	%ebx, %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_max1118,8,3                    ## @max1118
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vref"

L_.str.1:                               ## @.str.1
	.asciz	"failed to get vref regulator\n"

	.comm	_max1118_info,4,2               ## @max1118_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_max1118_channels,4,2           ## @max1118_channels
	.comm	_max1118_trigger_handler,4,2    ## @max1118_trigger_handler
	.no_dead_strip	_max1118_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max1118_probe
_max1118_probe:                         ; @max1118_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	bl	_spi_get_device_id
	mov	x19, x0
	mov	x0, x22
	mov	w1, #16
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_iio_priv
	mov	x20, x0
	str	x22, [x0, #8]
	add	x0, x0, #4
	bl	_mutex_init
	ldr	x8, [x19]
Lloh0:
	adrp	x24, _max1118@GOTPAGE
Lloh1:
	ldr	x24, [x24, _max1118@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.2:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_devm_regulator_get
	str	w0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.3:
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_dev_err
	ldr	w0, [x20]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_11
LBB0_5:
	ldr	w0, [x20]
	bl	_regulator_enable
	mov	x23, x0
	cbnz	w0, LBB0_11
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_spi_set_drvdata
	mov	x0, x22
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
	str	w8, [x21, #32]
Lloh9:
	adrp	x8, _max1118_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _max1118_info@GOTPAGEOFF]
	stp	x8, x22, [x21, #16]
Lloh11:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _max1118_channels@GOTPAGE
Lloh15:
	ldr	x9, [x9, _max1118_channels@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x9]
	stp	w0, w8, [x21, #4]
	bl	_ARRAY_SIZE
	str	w0, [x21]
	mov	x0, x22
	mov	w1, #0
	bl	_max1118_read
Lloh17:
	adrp	x8, _max1118_trigger_handler@GOTPAGE
Lloh18:
	ldr	x8, [x8, _max1118_trigger_handler@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_iio_triggered_buffer_setup
	mov	x23, x0
	cbnz	w0, LBB0_9
; %bb.7:
	mov	x0, x21
	bl	_iio_device_register
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.8:
	mov	x0, x21
	bl	_iio_triggered_buffer_cleanup
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w0, [x20]
	bl	_regulator_disable
LBB0_11:
	mov	x0, x23
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_max1118,8,3                    ; @max1118
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vref"

l_.str.1:                               ; @.str.1
	.asciz	"failed to get vref regulator\n"

	.comm	_max1118_info,4,2               ; @max1118_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_max1118_channels,4,2           ; @max1118_channels
	.comm	_max1118_trigger_handler,4,2    ; @max1118_trigger_handler
	.no_dead_strip	_max1118_probe
.subsections_via_symbols
