	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad5755_probe
_ad5755_probe:                          ## @ad5755_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, %r12
	callq	_spi_get_device_id
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_dev_get_platdata
	movq	%r12, %rdi
	movl	$24, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	_ad5755_chip_info_tbl@GOTPCREL(%rip), %rax
	shlq	$2, %rbx
	addq	(%rax), %rbx
	movq	%rbx, 16(%r15)
	movq	%r12, 8(%r15)
	movl	$15, (%r15)
	movq	%r12, 24(%r14)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movl	4(%rax), %eax
	movl	%eax, 16(%r14)
	movq	_ad5755_info@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movq	_AD5755_NUM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	callq	_ad5755_parse_dt
	movq	%rax, %r15
	testq	%r15, %r15
	jne	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
	movq	_ad5755_default_pdata@GOTPCREL(%rip), %r15
LBB0_7:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ad5755_init_channels
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ad5755_setup_pdata
	testl	%eax, %eax
	jne	LBB0_9
## %bb.10:
	movq	%r12, %rdi
	movq	%r14, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	(%r12), %r15
	testq	%r15, %r15
	jne	LBB0_7
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ad5755_chip_info_tbl,8,3       ## @ad5755_chip_info_tbl
	.comm	_ad5755_info,4,2                ## @ad5755_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_AD5755_NUM_CHANNELS,4,2        ## @AD5755_NUM_CHANNELS
L_.str.1:                               ## @.str.1
	.asciz	"no platform data? using default\n"

	.comm	_ad5755_default_pdata,4,2       ## @ad5755_default_pdata
	.no_dead_strip	_ad5755_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad5755_probe
_ad5755_probe:                          ; @ad5755_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
	bl	_spi_get_device_id
	ldr	w22, [x0]
	mov	x0, x19
	bl	_dev_get_platdata
	mov	x0, x19
	mov	w1, #24
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
Lloh0:
	adrp	x8, _ad5755_chip_info_tbl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ad5755_chip_info_tbl@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, x22, lsl #2
	stp	x19, x8, [x21, #8]
	mov	w8, #15
	str	w8, [x21]
	str	x19, [x20, #24]
	mov	x0, x19
	bl	_spi_get_device_id
	ldr	w8, [x0, #4]
	str	w8, [x20, #16]
Lloh3:
	adrp	x8, _ad5755_info@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ad5755_info@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh5:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _AD5755_NUM_CHANNELS@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AD5755_NUM_CHANNELS@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.2:
	mov	x0, x19
	bl	_ad5755_parse_dt
	mov	x21, x0
	cbnz	x21, LBB0_4
LBB0_3:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_warn
Lloh13:
	adrp	x21, _ad5755_default_pdata@GOTPAGE
Lloh14:
	ldr	x21, [x21, _ad5755_default_pdata@GOTPAGEOFF]
LBB0_4:
	mov	x0, x20
	mov	x1, x21
	bl	_ad5755_init_channels
	cbnz	w0, LBB0_8
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_ad5755_setup_pdata
	cbnz	w0, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x1, x20
	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	_devm_iio_device_register
LBB0_7:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
LBB0_9:
	ldr	x21, [x19]
	cbnz	x21, LBB0_4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate iio device\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ad5755_chip_info_tbl,8,3       ; @ad5755_chip_info_tbl
	.comm	_ad5755_info,4,2                ; @ad5755_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_AD5755_NUM_CHANNELS,4,2        ; @AD5755_NUM_CHANNELS
l_.str.1:                               ; @.str.1
	.asciz	"no platform data? using default\n"

	.comm	_ad5755_default_pdata,4,2       ; @ad5755_default_pdata
	.no_dead_strip	_ad5755_probe
.subsections_via_symbols
