	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88ds3103_probe
_m88ds3103_probe:                       ## @m88ds3103_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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$128, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 120(%rax)
	movl	56(%r12), %eax
	leaq	72(%rbx), %rcx
	movl	%eax, 116(%rbx)
	movl	52(%r12), %eax
	movl	%eax, 112(%rbx)
	imull	$1000, (%r12), %eax             ## imm = 0x3E8
	movl	%eax, 72(%rbx)
	movups	36(%r12), %xmm0
	movups	%xmm0, 96(%rbx)
	movl	4(%r12), %eax
	movl	%eax, 76(%rbx)
	movups	20(%r12), %xmm0
	movups	%xmm0, 80(%rbx)
	movq	%rcx, 48(%rbx)
	leaq	56(%rbx), %rsi
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, 56(%rbx)
	movq	%rbx, 64(%rbx)
	movq	%r14, %rdi
	callq	_devm_regmap_init_i2c
	movl	%eax, 40(%rbx)
	movl	%eax, %edi
	callq	_IS_ERR
	movl	40(%rbx), %edi
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_5
LBB0_6:
	leaq	-36(%rbp), %rdx
	xorl	%esi, %esi
	callq	_regmap_read
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_5:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_dbg
LBB0_31:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-36(%rbp), %edx
	shrl	%edx
	movl	%edx, (%rbx)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	(%rbx), %edx
	movl	%edx, %eax
	orl	$4, %eax
	cmpl	$132, %eax
	jne	LBB0_8
## %bb.9:
	movq	48(%rbx), %rax
	movl	4(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_13
## %bb.10:
	cmpl	$130, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$131, %eax
	jne	LBB0_16
## %bb.12:
	movl	$128, -36(%rbp)
	movl	$128, %edx
	jmp	LBB0_15
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_4
LBB0_13:
	movl	$16, -36(%rbp)
	movl	$16, %edx
	jmp	LBB0_15
LBB0_14:
	movl	$0, -36(%rbp)
	xorl	%edx, %edx
LBB0_15:
	cmpl	$0, (%r12)
	je	LBB0_16
## %bb.17:
	cmpl	$128, (%rbx)
	jne	LBB0_19
## %bb.18:
	movl	$0, -36(%rbp)
	xorl	%edx, %edx
LBB0_19:
	movl	40(%rbx), %edi
	movl	$41, %esi
	callq	_regmap_write
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.20:
	movq	%rbx, %rdi
	movl	$8, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.21:
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$1, %edx
	movl	$1, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.22:
	movq	%rbx, %rdi
	movl	$35, %esi
	movl	$16, %edx
	movl	$16, %ecx
	callq	_m88ds3103_update_bits
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.23:
	movl	8(%r14), %edi
	movq	_m88ds3103_select@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	$0, (%rsp)
	xorl	%r15d, %r15d
	movq	%r14, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_i2c_mux_alloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_24
## %bb.25:
	movq	%rbx, (%rax)
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_i2c_mux_add_adapter
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.26:
	movq	%rbx, %r15
	addq	$16, %r15
	movq	_m88ds3103_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	cmpl	$128, (%rbx)
	jne	LBB0_28
## %bb.27:
	movl	24(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
LBB0_28:
	cmpl	$0, 16(%r12)
	jne	LBB0_30
## %bb.29:
	movq	$0, (%r15)
LBB0_30:
	movq	%rbx, 8(%rbx)
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_clientdata
	movq	_m88ds3103_get_dvb_frontend@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	movq	_m88ds3103_get_i2c_adapter@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_31
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_4
LBB0_24:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip_id=%02x\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"Unknown device. Chip_id=%02x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_m88ds3103_select,4,2           ## @m88ds3103_select
	.comm	_m88ds3103_ops,4,2              ## @m88ds3103_ops
L_.str.2:                               ## @.str.2
	.asciz	"Montage Technology M88RS6000"

	.comm	_m88ds3103_get_dvb_frontend,4,2 ## @m88ds3103_get_dvb_frontend
	.comm	_m88ds3103_get_i2c_adapter,4,2  ## @m88ds3103_get_i2c_adapter
L_.str.3:                               ## @.str.3
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88ds3103_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88ds3103_probe
_m88ds3103_probe:                       ; @m88ds3103_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	x22, [x0]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #128
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	str	x19, [x0, #120]
	ldur	d0, [x22, #52]
	str	d0, [x0, #112]
	ldr	w8, [x22]
	mov	w9, #1000
	mul	w8, w8, w9
	mov	x9, x0
	str	w8, [x9, #72]!
	ldur	q0, [x22, #36]
	str	q0, [x0, #96]
	ldr	w8, [x22, #4]
	str	w8, [x0, #76]
	ldur	q0, [x22, #20]
	str	q0, [x0, #80]
	str	x9, [x0, #48]
	movi.2s	v0, #8
	mov	x1, x0
	str	d0, [x1, #56]!
	str	x0, [x0, #64]
	mov	x0, x19
	bl	_devm_regmap_init_i2c
	str	w0, [x20, #40]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20, #40]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_6
LBB0_4:
	add	x2, sp, #12
	mov	w1, #0
	bl	_regmap_read
	mov	x21, x0
	cbz	w0, LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_kfree
LBB0_6:
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x21
	bl	_dev_dbg
LBB0_7:
	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_8:
	ldr	w8, [sp, #12]
	lsr	w2, w8, #1
	str	w2, [x20]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w2, [x20]
	orr	w8, w2, #0x4
	cmp	w8, #132
	b.ne	LBB0_13
; %bb.9:
	ldr	x8, [x20, #48]
	ldr	w8, [x8, #4]
	cmp	w8, #129
	b.eq	LBB0_14
; %bb.10:
	cmp	w8, #130
	b.eq	LBB0_15
; %bb.11:
	cmp	w8, #131
	b.ne	LBB0_30
; %bb.12:
	mov	w2, #128
	str	w2, [sp, #12]
	b	LBB0_16
LBB0_13:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w21, w8
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_14:
	mov	w2, #16
	str	w2, [sp, #12]
	b	LBB0_16
LBB0_15:
	mov	w2, #0
	str	wzr, [sp, #12]
LBB0_16:
	ldr	w8, [x22]
	cbz	w8, LBB0_30
; %bb.17:
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_19
; %bb.18:
	mov	w2, #0
	str	wzr, [sp, #12]
LBB0_19:
	ldr	w0, [x20, #40]
	mov	w1, #41
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.20:
	mov	x0, x20
	mov	w1, #8
	mov	w2, #1
	mov	w3, #0
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.21:
	mov	x0, x20
	mov	w1, #4
	mov	w2, #1
	mov	w3, #1
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.22:
	mov	x0, x20
	mov	w1, #35
	mov	w2, #16
	mov	w3, #16
	bl	_m88ds3103_update_bits
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.23:
	ldr	w0, [x19, #8]
Lloh15:
	adrp	x8, _m88ds3103_select@GOTPAGE
Lloh16:
	ldr	x8, [x8, _m88ds3103_select@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	mov	x6, #0
	bl	_i2c_mux_alloc
	str	x0, [x20, #32]
	cbz	x0, LBB0_32
; %bb.24:
	str	x20, [x0]
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_i2c_mux_add_adapter
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.25:
	add	x21, x20, #16
Lloh18:
	adrp	x1, _m88ds3103_ops@GOTPAGE
Lloh19:
	ldr	x1, [x1, _m88ds3103_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x20]
	cmp	w8, #128
	b.ne	LBB0_27
; %bb.26:
	ldr	w0, [x20, #24]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
LBB0_27:
	ldr	w8, [x22, #16]
	cbnz	w8, LBB0_29
; %bb.28:
	str	xzr, [x21]
LBB0_29:
	str	x20, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	w21, #0
Lloh22:
	adrp	x8, _m88ds3103_get_dvb_frontend@GOTPAGE
Lloh23:
	ldr	x8, [x8, _m88ds3103_get_dvb_frontend@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _m88ds3103_get_i2c_adapter@GOTPAGE
Lloh26:
	ldr	x9, [x9, _m88ds3103_get_i2c_adapter@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	stp	w9, w8, [x22, #8]
	b	LBB0_7
LBB0_30:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_31:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_5
LBB0_32:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_31
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip_id=%02x\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"Unknown device. Chip_id=%02x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_m88ds3103_select,4,2           ; @m88ds3103_select
	.comm	_m88ds3103_ops,4,2              ; @m88ds3103_ops
l_.str.2:                               ; @.str.2
	.asciz	"Montage Technology M88RS6000"

	.comm	_m88ds3103_get_dvb_frontend,4,2 ; @m88ds3103_get_dvb_frontend
	.comm	_m88ds3103_get_i2c_adapter,4,2  ; @m88ds3103_get_i2c_adapter
l_.str.3:                               ; @.str.3
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88ds3103_probe
.subsections_via_symbols
