	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adf4350_probe
_adf4350_probe:                         ## @adf4350_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, %r12
	cmpq	$0, 8(%rdi)
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	callq	_adf4350_parse_dt
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_4:
	movq	(%r12), %r15
	testq	%r15, %r15
	je	LBB0_5
LBB0_6:
	cmpq	$0, 24(%r15)
	je	LBB0_10
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$56, %esi
	callq	_devm_iio_device_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_iio_priv
	movq	%rax, %rbx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_regulator_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
LBB0_16:
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_spi_set_drvdata
	movq	%r12, 48(%rbx)
	movq	%r15, 40(%rbx)
	movq	%r12, 40(%r13)
	movq	(%r15), %rax
	cmpq	$0, (%rax)
	jne	LBB0_18
## %bb.17:
	movq	%r12, %rdi
	callq	_spi_get_device_id
	movq	(%rax), %rax
LBB0_18:
	movq	%rax, (%r13)
	movq	_adf4350_info@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r13)
	movq	_INDIO_DIRECT_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	_adf4350_chan@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r13)
	movl	$1, 8(%r13)
	movl	32(%r15), %eax
	movl	%eax, 32(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.19:
	movq	%rdi, 24(%rbx)
	callq	_clk_get_rate
	jmp	LBB0_21
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_29
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
	movq	_default_pdata@GOTPCREL(%rip), %r15
	cmpq	$0, 24(%r15)
	jne	LBB0_7
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_devm_clk_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_36
LBB0_15:
	movq	(%rbx), %rdi
	callq	_regulator_enable
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_29
	jmp	LBB0_16
LBB0_12:
	movq	%rbx, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	jns	LBB0_8
## %bb.13:
	movl	%eax, %r14d
	jmp	LBB0_36
LBB0_20:
	movq	24(%r15), %rax
LBB0_21:
	movq	%rax, 16(%rbx)
	movq	%r12, %rdi
	callq	_spi_get_device_id
	cmpl	$4351, 8(%rax)                  ## imm = 0x10FF
	jne	LBB0_22
## %bb.23:
	movq	_ADF4351_MIN_OUT_FREQ@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_22:
	movq	_ADF4350_MIN_OUT_FREQ@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movl	8(%rbx), %edi
	movl	$255, %esi
	movl	$4, %edx
	callq	_memset
	movl	16(%r15), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_32
## %bb.25:
	movl	16(%r15), %esi
	movq	(%r13), %rdx
	movq	%r12, %rdi
	callq	_devm_gpio_request
	movl	16(%r15), %edx
	testl	%eax, %eax
	je	LBB0_31
## %bb.26:
	movl	%eax, %r14d
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	jmp	LBB0_27
LBB0_31:
	movl	%edx, %edi
	callq	_gpio_direction_input
LBB0_32:
	movq	8(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_34
## %bb.33:
	movq	%rbx, %rdi
	callq	_adf4350_set_freq
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_27
LBB0_34:
	movq	%r13, %rdi
	callq	_iio_device_register
	movl	%eax, %r14d
	testl	%eax, %eax
	je	LBB0_35
LBB0_27:
	movq	(%rbx), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_29
## %bb.28:
	movq	(%rbx), %rdi
	callq	_regulator_disable
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_36
## %bb.30:
	callq	_clk_disable_unprepare
LBB0_36:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	xorl	%r14d, %r14d
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no platform data? using default\n"

	.comm	_default_pdata,40,3             ## @default_pdata
L_.str.1:                               ## @.str.1
	.asciz	"clkin"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"vcc"

	.comm	_adf4350_info,4,2               ## @adf4350_info
	.comm	_INDIO_DIRECT_MODE,4,2          ## @INDIO_DIRECT_MODE
	.comm	_adf4350_chan,4,2               ## @adf4350_chan
	.comm	_ADF4351_MIN_OUT_FREQ,4,2       ## @ADF4351_MIN_OUT_FREQ
	.comm	_ADF4350_MIN_OUT_FREQ,4,2       ## @ADF4350_MIN_OUT_FREQ
L_.str.3:                               ## @.str.3
	.asciz	"fail to request lock detect GPIO-%d"

	.no_dead_strip	_adf4350_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adf4350_probe
_adf4350_probe:                         ; @adf4350_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	x20, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_adf4350_parse_dt
	mov	x21, x0
	cbnz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_16
LBB0_3:
	ldr	x21, [x20]
	cbz	x21, LBB0_13
LBB0_4:
	ldr	x8, [x21, #24]
	cbz	x8, LBB0_14
LBB0_5:
	mov	x19, #0
LBB0_6:
	mov	x0, x20
	mov	w1, #56
	bl	_devm_iio_device_alloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x23, x0
	bl	_iio_priv
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_devm_regulator_get
	str	x0, [x22]
	bl	_IS_ERR
	cbz	x0, LBB0_17
LBB0_8:
	mov	x0, x20
	mov	x1, x23
	bl	_spi_set_drvdata
	stp	x21, x20, [x22, #40]
	str	x20, [x23, #40]
	ldr	x8, [x21]
	ldr	x9, [x8]
	cbnz	x9, LBB0_10
; %bb.9:
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	x8, [x0]
LBB0_10:
	str	x8, [x23]
Lloh4:
	adrp	x8, _adf4350_info@GOTPAGE
Lloh5:
	ldr	x8, [x8, _adf4350_info@GOTPAGEOFF]
	str	x8, [x23, #32]
Lloh6:
	adrp	x8, _INDIO_DIRECT_MODE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INDIO_DIRECT_MODE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _adf4350_chan@GOTPAGE
Lloh10:
	ldr	x9, [x9, _adf4350_chan@GOTPAGEOFF]
	str	w8, [x23, #24]
	str	x9, [x23, #16]
	mov	w8, #1
	str	w8, [x23, #8]
	ldr	w8, [x21, #32]
	str	w8, [x22, #32]
	cbz	x19, LBB0_20
; %bb.11:
	str	x19, [x22, #24]
	mov	x0, x19
	bl	_clk_get_rate
	b	LBB0_21
LBB0_12:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_30
LBB0_13:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
Lloh16:
	adrp	x21, _default_pdata@GOTPAGE
Lloh17:
	ldr	x21, [x21, _default_pdata@GOTPAGEOFF]
	ldr	x8, [x21, #24]
	cbnz	x8, LBB0_5
LBB0_14:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_devm_clk_get
	mov	x19, x0
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.15:
Lloh20:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_32
LBB0_17:
	ldr	x0, [x22]
	bl	_regulator_enable
	mov	x24, x0
	cbnz	w0, LBB0_30
	b	LBB0_8
LBB0_18:
	mov	x0, x19
	bl	_clk_prepare_enable
	tbz	w0, #31, LBB0_6
; %bb.19:
	mov	x24, x0
	b	LBB0_32
LBB0_20:
	ldr	x0, [x21, #24]
LBB0_21:
	str	x0, [x22, #16]
	mov	x0, x20
	bl	_spi_get_device_id
	ldr	w8, [x0, #8]
Lloh22:
	adrp	x9, _ADF4351_MIN_OUT_FREQ@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ADF4351_MIN_OUT_FREQ@GOTPAGEOFF]
Lloh24:
	adrp	x10, _ADF4350_MIN_OUT_FREQ@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ADF4350_MIN_OUT_FREQ@GOTPAGEOFF]
	mov	w11, #4351
	cmp	w8, w11
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x22, #12]
	ldr	w0, [x22, #8]
	mov	w1, #255
	mov	w2, #4
	bl	_memset
	ldr	w0, [x21, #16]
	bl	_gpio_is_valid
	cbz	x0, LBB0_25
; %bb.22:
	ldr	w1, [x21, #16]
	ldr	x2, [x23]
	mov	x0, x20
	bl	_devm_gpio_request
	ldr	w2, [x21, #16]
	cbz	w0, LBB0_24
; %bb.23:
	mov	x24, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_28
LBB0_24:
	mov	x0, x2
	bl	_gpio_direction_input
LBB0_25:
	ldr	x1, [x21, #8]
	cbz	x1, LBB0_27
; %bb.26:
	mov	x0, x22
	bl	_adf4350_set_freq
	mov	x24, x0
	cbnz	w0, LBB0_28
LBB0_27:
	mov	x0, x23
	bl	_iio_device_register
	mov	x24, x0
	cbz	w0, LBB0_32
LBB0_28:
	ldr	x0, [x22]
	bl	_IS_ERR
	cbnz	x0, LBB0_30
; %bb.29:
	ldr	x0, [x22]
	bl	_regulator_disable
LBB0_30:
	cbz	x19, LBB0_32
; %bb.31:
	mov	x0, x19
	bl	_clk_disable_unprepare
LBB0_32:
	mov	x0, x24
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no platform data? using default\n"

	.comm	_default_pdata,40,3             ; @default_pdata
l_.str.1:                               ; @.str.1
	.asciz	"clkin"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"vcc"

	.comm	_adf4350_info,4,2               ; @adf4350_info
	.comm	_INDIO_DIRECT_MODE,4,2          ; @INDIO_DIRECT_MODE
	.comm	_adf4350_chan,4,2               ; @adf4350_chan
	.comm	_ADF4351_MIN_OUT_FREQ,4,2       ; @ADF4351_MIN_OUT_FREQ
	.comm	_ADF4350_MIN_OUT_FREQ,4,2       ; @ADF4350_MIN_OUT_FREQ
l_.str.3:                               ; @.str.3
	.asciz	"fail to request lock detect GPIO-%d"

	.no_dead_strip	_adf4350_probe
.subsections_via_symbols
