	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kempld_i2c_probe
_kempld_i2c_probe:                      ## @kempld_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movl	(%rdi), %edi
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, 32(%rax)
	movq	%r12, 8(%rax)
	movq	%rax, %r15
	addq	$16, %r15
	movq	_kempld_i2c_adapter@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	%r12, 24(%rbx)
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_kempld_get_mutex
	movq	_KEMPLD_I2C_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kempld_read8
	movq	_I2C_CTRL_EN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	movq	%rbx, %rdi
	callq	_kempld_i2c_device_init
	movq	%r14, %rdi
	callq	_kempld_release_mutex
	movq	_i2c_bus@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$-1, %eax
	jl	LBB0_6
## %bb.5:
	movl	%eax, (%r15)
LBB0_6:
	movq	%r15, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rdi
	movq	_bus_frequency@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_kempld_i2c_adapter,16,3        ## @kempld_i2c_adapter
	.comm	_KEMPLD_I2C_CTRL,4,2            ## @KEMPLD_I2C_CTRL
	.comm	_I2C_CTRL_EN,4,2                ## @I2C_CTRL_EN
	.comm	_i2c_bus,4,2                    ## @i2c_bus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"I2C bus initialized at %dkHz\n"

	.comm	_bus_frequency,4,2              ## @bus_frequency
	.no_dead_strip	_kempld_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kempld_i2c_probe
_kempld_i2c_probe:                      ; @kempld_i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x22, x0
	ldr	w0, [x0]
	bl	_dev_get_drvdata
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x22
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	str	x22, [x0, #8]
Lloh3:
	adrp	x8, _kempld_i2c_adapter@GOTPAGE
Lloh4:
	ldr	x8, [x8, _kempld_i2c_adapter@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	mov	x21, x0
	str	x8, [x21, #16]!
	stp	x22, x20, [x0, #24]
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_adapdata
	mov	x0, x22
	mov	x1, x19
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_kempld_get_mutex
Lloh6:
	adrp	x8, _KEMPLD_I2C_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _KEMPLD_I2C_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kempld_read8
Lloh9:
	adrp	x8, _I2C_CTRL_EN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _I2C_CTRL_EN@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x19]
LBB0_3:
	mov	x0, x19
	bl	_kempld_i2c_device_init
	mov	x0, x20
	bl	_kempld_release_mutex
Lloh12:
	adrp	x8, _i2c_bus@GOTPAGE
Lloh13:
	ldr	x8, [x8, _i2c_bus@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmn	w8, #1
	b.lt	LBB0_5
; %bb.4:
	str	w8, [x21]
LBB0_5:
	mov	x0, x21
	bl	_i2c_add_numbered_adapter
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x0, [x19, #8]
Lloh15:
	adrp	x8, _bus_frequency@GOTPAGE
Lloh16:
	ldr	x8, [x8, _bus_frequency@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_kempld_i2c_adapter,16,3        ; @kempld_i2c_adapter
	.comm	_KEMPLD_I2C_CTRL,4,2            ; @KEMPLD_I2C_CTRL
	.comm	_I2C_CTRL_EN,4,2                ; @I2C_CTRL_EN
	.comm	_i2c_bus,4,2                    ; @i2c_bus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"I2C bus initialized at %dkHz\n"

	.comm	_bus_frequency,4,2              ; @bus_frequency
	.no_dead_strip	_kempld_i2c_probe
.subsections_via_symbols
