	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpm_i2c_probe
_cpm_i2c_probe:                         ## @cpm_i2c_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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 24(%rax)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	movq	_cpm_ops@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbx)
	movq	16(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, 16(%rbx)
	movl	(%r14), %edi
	callq	_of_node_get
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_cpm_i2c_setup
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_10:
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_4:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_get_property
	movq	%rax, %rdi
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.5:
	cmpl	$4, -28(%rbp)
	jne	LBB0_7
## %bb.6:
	callq	_be32_to_cpup
LBB0_7:
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movl	4(%rbx), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	xorl	%r15d, %r15d
LBB0_11:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_cpm_i2c_shutdown
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_cpm_ops,24,3                   ## @cpm_ops
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unable to init hardware\n"

L_.str.1:                               ## @.str.1
	.asciz	"linux,i2c-index"

L_.str.2:                               ## @.str.2
	.asciz	"hw routines for %s registered.\n"

	.no_dead_strip	_cpm_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpm_i2c_probe
_cpm_i2c_probe:                         ; @cpm_i2c_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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	str	x20, [x0, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _cpm_ops@GOTPAGE
Lloh4:
	ldr	x8, [x8, _cpm_ops@GOTPAGEOFF]
	ldr	x9, [x8, #16]
	ldr	q0, [x8]
	str	q0, [x19]
	str	x9, [x19, #16]
	mov	x0, x19
	mov	x1, x19
	bl	_i2c_set_adapdata
	str	x20, [x19, #16]
	ldr	w0, [x20]
	bl	_of_node_get
	str	w0, [x19, #8]
	mov	x0, x19
	bl	_cpm_i2c_setup
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x19
	bl	_kfree
	b	LBB0_10
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_10
LBB0_5:
	ldr	w0, [x20]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	mov	x8, x0
	mov	w0, #-1
	cbz	x8, LBB0_8
; %bb.6:
	ldr	w9, [sp, #12]
	cmp	w9, #4
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x8
	bl	_be32_to_cpup
LBB0_8:
	str	w0, [x19]
	mov	x0, x19
	bl	_i2c_add_numbered_adapter
	tbnz	w0, #31, LBB0_11
; %bb.9:
	ldr	w2, [x19, #4]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	mov	w21, #0
LBB0_10:
	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_11:
	mov	x21, x0
	mov	x0, x19
	bl	_cpm_i2c_shutdown
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_cpm_ops,24,3                   ; @cpm_ops
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unable to init hardware\n"

l_.str.1:                               ; @.str.1
	.asciz	"linux,i2c-index"

l_.str.2:                               ; @.str.2
	.asciz	"hw routines for %s registered.\n"

	.no_dead_strip	_cpm_i2c_probe
.subsections_via_symbols
