	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zd1301_demod_probe
_zd1301_demod_probe:                    ## @zd1301_demod_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%r15, 56(%rax)
	movq	_zd1301_demod_gain@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	%r14, %rdi
	movl	$26688, %esi                    ## imm = 0x6840
	movl	$33, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	%r14, %rdi
	movl	$27192, %esi                    ## imm = 0x6A38
	movl	$7, %edx
	callq	_zd1301_demod_wreg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	leaq	16(%r14), %rbx
	movl	40(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
	movq	_zd1301_demod_i2c_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	$0, 24(%r14)
	movq	(%r15), %rax
	movq	%rax, 16(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	%r14, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_11
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r14, %rdi
	addq	$8, %rdi
	movq	_zd1301_demod_ops@GOTPCREL(%rip), %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	%r14, (%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"cannot proceed without platform data\n"

L_.str.2:                               ## @.str.2
	.asciz	"no parent device\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_zd1301_demod_gain,4,2          ## @zd1301_demod_gain
L_.str.3:                               ## @.str.3
	.asciz	"ZyDAS ZD1301 demod"

	.comm	_zd1301_demod_i2c_algorithm,4,2 ## @zd1301_demod_i2c_algorithm
L_.str.4:                               ## @.str.4
	.asciz	"I2C adapter add failed %d\n"

	.comm	_zd1301_demod_ops,4,2           ## @zd1301_demod_ops
L_.str.5:                               ## @.str.5
	.asciz	"ZyDAS ZD1301 demod attached\n"

L_.str.6:                               ## @.str.6
	.asciz	"failed=%d\n"

	.no_dead_strip	_zd1301_demod_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zd1301_demod_probe
_zd1301_demod_probe:                    ; @zd1301_demod_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	cbz	x20, LBB0_8
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cbz	w8, LBB0_9
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x20, x0
	str	x19, [x0, #56]
Lloh5:
	adrp	x8, _zd1301_demod_gain@GOTPAGE
Lloh6:
	ldr	x8, [x8, _zd1301_demod_gain@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	mov	w1, #26688
	mov	w2, #33
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.4:
	mov	x0, x20
	mov	w1, #27192
	mov	w2, #7
	bl	_zd1301_demod_wreg
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w0, [x20, #40]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w2, #4
	bl	_strscpy
Lloh10:
	adrp	x8, _zd1301_demod_i2c_algorithm@GOTPAGE
Lloh11:
	ldr	x8, [x8, _zd1301_demod_i2c_algorithm@GOTPAGEOFF]
	stp	xzr, x8, [x20, #24]
	ldr	x8, [x19]
	mov	x21, x20
	str	x8, [x21, #16]!
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x21, x0
	cbz	w0, LBB0_13
; %bb.6:
	str	x21, [sp]
Lloh12:
	adrp	x1, l_.str.4@PAGE
Lloh13:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_7:
	mov	x0, x20
	bl	_kfree
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_11
LBB0_9:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w21, w8
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	b	LBB0_11
LBB0_10:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
LBB0_13:
	add	x0, x20, #8
Lloh29:
	adrp	x1, _zd1301_demod_ops@GOTPAGE
Lloh30:
	ldr	x1, [x1, _zd1301_demod_ops@GOTPAGEOFF]
	mov	w2, #4
	bl	_memcpy
	str	x20, [x20]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"cannot proceed without platform data\n"

l_.str.2:                               ; @.str.2
	.asciz	"no parent device\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_zd1301_demod_gain,4,2          ; @zd1301_demod_gain
l_.str.3:                               ; @.str.3
	.asciz	"ZyDAS ZD1301 demod"

	.comm	_zd1301_demod_i2c_algorithm,4,2 ; @zd1301_demod_i2c_algorithm
l_.str.4:                               ; @.str.4
	.asciz	"I2C adapter add failed %d\n"

	.comm	_zd1301_demod_ops,4,2           ; @zd1301_demod_ops
l_.str.5:                               ; @.str.5
	.asciz	"ZyDAS ZD1301 demod attached\n"

l_.str.6:                               ; @.str.6
	.asciz	"failed=%d\n"

	.no_dead_strip	_zd1301_demod_probe
.subsections_via_symbols
