	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4371_probe
_adf4371_probe:                         ## @adf4371_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, %r13
	callq	_spi_get_device_id
	movq	%rax, %r12
	movq	%r13, %rdi
	movl	$48, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_adf4371_regmap_config@GOTPCREL(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_regmap_init_spi
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%rbx, %rdi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	callq	_iio_priv
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_spi_set_drvdata
	movq	%r13, 40(%r15)
	movq	%rbx, 32(%r15)
	leaq	24(%r15), %rdi
	callq	_mutex_init
	movq	_adf4371_chip_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12), %rcx
	leaq	(%rax,%rcx,8), %rdx
	movq	%rdx, 16(%r15)
	movq	%r13, 32(%r14)
	movl	8(%r12), %edx
	movl	%edx, 24(%r14)
	movq	_adf4371_info@GOTPCREL(%rip), %rdx
	movq	%rdx, 16(%r14)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 8(%r14)
	movl	4(%rax,%rcx,8), %edx
	movl	%edx, 4(%r14)
	movl	(%rax,%rcx,8), %eax
	movl	%eax, (%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_devm_clk_get
	movq	%rax, (%r15)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r15), %rdi
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_6:
	callq	_clk_prepare_enable
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movq	_adf4371_clk_disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r15, %rdx
	callq	_devm_add_action_or_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movq	(%r15), %rdi
	callq	_clk_get_rate
	movl	%eax, 8(%r15)
	movq	%r15, %rdi
	callq	_adf4371_setup
	testl	%eax, %eax
	js	LBB0_10
## %bb.12:
	movq	%r13, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_devm_iio_device_register       ## TAILCALL
LBB0_7:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_adf4371_regmap_config,4,2      ## @adf4371_regmap_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error initializing spi regmap: %ld\n"

	.comm	_adf4371_chip_info,8,3          ## @adf4371_chip_info
	.comm	_adf4371_info,4,2               ## @adf4371_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
L_.str.1:                               ## @.str.1
	.asciz	"clkin"

	.comm	_adf4371_clk_disable,4,2        ## @adf4371_clk_disable
L_.str.2:                               ## @.str.2
	.asciz	"ADF4371 setup failed\n"

	.no_dead_strip	_adf4371_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4371_probe
_adf4371_probe:                         ; @adf4371_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_spi_get_device_id
	mov	x22, x0
	mov	x0, x19
	mov	w1, #48
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x1, _adf4371_regmap_config@GOTPAGE
Lloh1:
	ldr	x1, [x1, _adf4371_regmap_config@GOTPAGEOFF]
	mov	x0, x19
	bl	_devm_regmap_init_spi
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x23
	bl	_PTR_ERR
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x23
	b	LBB0_6
LBB0_3:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_4:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	x0, x20
	bl	_iio_priv
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_spi_set_drvdata
	stp	x23, x19, [x21, #32]
	add	x0, x21, #24
	bl	_mutex_init
Lloh7:
	adrp	x8, _adf4371_chip_info@GOTPAGE
Lloh8:
	ldr	x8, [x8, _adf4371_chip_info@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	add	x10, x8, x9
	str	x10, [x21, #16]
	str	x19, [x20, #32]
	ldr	w10, [x22, #8]
	str	w10, [x20, #24]
Lloh10:
	adrp	x10, _adf4371_info@GOTPAGE
Lloh11:
	ldr	x10, [x10, _adf4371_info@GOTPAGEOFF]
Lloh12:
	adrp	x11, _INDIO_DIRECT_MODE@GOTPAGE
Lloh13:
	ldr	x11, [x11, _INDIO_DIRECT_MODE@GOTPAGEOFF]
	str	x10, [x20, #16]
Lloh14:
	ldr	w10, [x11]
	str	w10, [x20, #8]
	ldr	d0, [x8, x9]
	str	d0, [x20]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_clk_get
	str	x0, [x21]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x21]
	cbz	x8, LBB0_7
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_7:
	bl	_clk_prepare_enable
	tbnz	w0, #31, LBB0_11
; %bb.8:
Lloh17:
	adrp	x8, _adf4371_clk_disable@GOTPAGE
Lloh18:
	ldr	x8, [x8, _adf4371_clk_disable@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_devm_add_action_or_reset
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.9:
	ldr	x0, [x21]
	bl	_clk_get_rate
	str	w0, [x21, #8]
	mov	x0, x21
	bl	_adf4371_setup
	tbnz	w0, #31, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_devm_iio_device_register
LBB0_11:
	mov	x22, x0
	b	LBB0_4
LBB0_12:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_adf4371_regmap_config,4,2      ; @adf4371_regmap_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error initializing spi regmap: %ld\n"

	.comm	_adf4371_chip_info,8,3          ; @adf4371_chip_info
	.comm	_adf4371_info,4,2               ; @adf4371_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
l_.str.1:                               ; @.str.1
	.asciz	"clkin"

	.comm	_adf4371_clk_disable,4,2        ; @adf4371_clk_disable
l_.str.2:                               ; @.str.2
	.asciz	"ADF4371 setup failed\n"

	.no_dead_strip	_adf4371_probe
.subsections_via_symbols
