	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_lpc2k_probe
_i2c_lpc2k_probe:                       ## @i2c_lpc2k_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, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$64, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_IORESOURCE_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_platform_get_resource
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_devm_ioremap_resource
	movq	%rax, 48(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	48(%r14), %rdi
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_25:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	%rax, (%r14)
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	leaq	56(%r14), %rdi
	callq	_init_waitqueue_head
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	8(%r14), %rdi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	(%r14), %ebx
	jmp	LBB0_25
LBB0_9:
	movq	8(%r14), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_25
LBB0_11:
	movl	(%r14), %r12d
	movq	_i2c_lpc2k_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	(%r14), %edi
	callq	_disable_irq_nosync
	movq	%r14, %rdi
	callq	_i2c_lpc2k_reset
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	$100000, -36(%rbp)              ## imm = 0x186A0
LBB0_15:
	movq	8(%r14), %rdi
	callq	_clk_get_rate
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	-36(%rbp), %ecx
	cltd
	idivl	%ecx
	movl	%eax, %r12d
	cmpl	$400001, %ecx                   ## imm = 0x61A81
	jge	LBB0_18
## %bb.19:
	movq	_I2C_FAST_MODE_DUTY@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_12:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	jmp	LBB0_24
LBB0_16:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_24
LBB0_18:
	movq	_I2C_FAST_MODE_PLUS_DUTY@GOTPCREL(%rip), %rax
LBB0_20:
	cmpl	$100001, %ecx                   ## imm = 0x186A1
	jge	LBB0_22
## %bb.21:
	movq	_I2C_STD_MODE_DUTY@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
	imull	%r12d, %eax
	cltq
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	movq	_LPC24XX_I2SCLH@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%r14), %rsi
	movl	%ebx, %edi
	callq	_writel
	subl	%ebx, %r12d
	movq	_LPC24XX_I2SCLL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%r14), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r14)
	movl	40(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_i2c_lpc2k_algorithm@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r15, 24(%r14)
	movl	(%r15), %eax
	movl	%eax, 16(%r14)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	js	LBB0_23
## %bb.26:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	xorl	%ebx, %ebx
	jmp	LBB0_25
LBB0_23:
	movl	%eax, %ebx
LBB0_24:
	movq	8(%r14), %rdi
	callq	_clk_disable_unprepare
	jmp	LBB0_25
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ## @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get interrupt resource\n"

L_.str.1:                               ## @.str.1
	.asciz	"error getting clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"unable to enable clock.\n"

	.comm	_i2c_lpc2k_handler,4,2          ## @i2c_lpc2k_handler
L_.str.3:                               ## @.str.3
	.asciz	"can't request interrupt.\n"

L_.str.4:                               ## @.str.4
	.asciz	"clock-frequency"

L_.str.5:                               ## @.str.5
	.asciz	"can't get I2C base clock\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I2C_STD_MODE_DUTY,4,2          ## @I2C_STD_MODE_DUTY
	.comm	_I2C_FAST_MODE_DUTY,4,2         ## @I2C_FAST_MODE_DUTY
	.comm	_I2C_FAST_MODE_PLUS_DUTY,4,2    ## @I2C_FAST_MODE_PLUS_DUTY
	.comm	_LPC24XX_I2SCLH,8,3             ## @LPC24XX_I2SCLH
	.comm	_LPC24XX_I2SCLL,8,3             ## @LPC24XX_I2SCLL
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.6:                               ## @.str.6
	.asciz	"LPC2K I2C adapter"

	.comm	_i2c_lpc2k_algorithm,4,2        ## @i2c_lpc2k_algorithm
L_.str.7:                               ## @.str.7
	.asciz	"LPC2K I2C adapter\n"

	.no_dead_strip	_i2c_lpc2k_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_lpc2k_probe
_i2c_lpc2k_probe:                       ; @i2c_lpc2k_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	w2, [x8]
	mov	w1, #64
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x8, _IORESOURCE_MEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IORESOURCE_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_platform_get_resource
	mov	x1, x0
	mov	x0, x20
	bl	_devm_ioremap_resource
	str	x0, [x19, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #48]
LBB0_3:
	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
	b	_PTR_ERR
LBB0_4:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	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_6:
	mov	x0, x20
	mov	w1, #0
	bl	_platform_get_irq
	str	x0, [x19]
	tbnz	x0, #63, LBB0_9
; %bb.7:
	add	x0, x19, #56
	bl	_init_waitqueue_head
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x19, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	x0, [x19, #8]
	b	LBB0_3
LBB0_9:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w21, [x19]
	b	LBB0_5
LBB0_10:
	ldr	x0, [x19, #8]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_5
LBB0_12:
	ldr	w21, [x19]
Lloh15:
	adrp	x8, _i2c_lpc2k_handler@GOTPAGE
Lloh16:
	ldr	x8, [x8, _i2c_lpc2k_handler@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x20
	bl	_dev_name
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x19
	bl	_devm_request_irq
	tbnz	w0, #31, LBB0_18
; %bb.13:
	mov	w21, #34464
	movk	w21, #1, lsl #16
	ldr	w0, [x19]
	bl	_disable_irq_nosync
	mov	x0, x19
	bl	_i2c_lpc2k_reset
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_15
; %bb.14:
	str	w21, [sp, #12]
LBB0_15:
	ldr	x0, [x19, #8]
	bl	_clk_get_rate
	cbz	w0, LBB0_19
; %bb.16:
	ldr	w8, [sp, #12]
	sdiv	w22, w0, w8
Lloh20:
	adrp	x9, _I2C_STD_MODE_DUTY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _I2C_STD_MODE_DUTY@GOTPAGEOFF]
Lloh22:
	adrp	x10, _I2C_FAST_MODE_DUTY@GOTPAGE
Lloh23:
	ldr	x10, [x10, _I2C_FAST_MODE_DUTY@GOTPAGEOFF]
Lloh24:
	adrp	x11, _I2C_FAST_MODE_PLUS_DUTY@GOTPAGE
Lloh25:
	ldr	x11, [x11, _I2C_FAST_MODE_PLUS_DUTY@GOTPAGEOFF]
	add	w12, w21, #1
	mov	w13, #6785
	movk	w13, #6, lsl #16
	cmp	w8, w13
	csel	x10, x10, x11, lt
	cmp	w8, w12
	csel	x8, x9, x10, lt
	ldr	w8, [x8]
	mul	w8, w8, w22
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #32
	lsr	x8, x8, #63
	add	w21, w8, w9, asr #5
	ldr	x8, [x19, #48]
Lloh26:
	adrp	x9, _LPC24XX_I2SCLH@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LPC24XX_I2SCLH@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	sub	w0, w22, w21
	ldr	x8, [x19, #48]
Lloh29:
	adrp	x9, _LPC24XX_I2SCLL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LPC24XX_I2SCLL@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x21, x19, #16
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_adapdata
Lloh32:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh33:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	str	w8, [x19, #44]
	ldr	w0, [x19, #40]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh37:
	adrp	x8, _i2c_lpc2k_algorithm@GOTPAGE
Lloh38:
	ldr	x8, [x8, _i2c_lpc2k_algorithm@GOTPAGEOFF]
	stp	x20, x8, [x19, #24]
	ldr	w8, [x20]
	str	w8, [x19, #16]
	mov	x0, x21
	bl	_i2c_add_adapter
	tbnz	w0, #31, LBB0_20
; %bb.17:
Lloh39:
	adrp	x1, l_.str.7@PAGE
Lloh40:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_dev_info
	mov	w21, #0
	b	LBB0_5
LBB0_18:
	mov	x21, x0
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_21
LBB0_19:
Lloh43:
	adrp	x1, l_.str.5@PAGE
Lloh44:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh45:
	adrp	x8, _EINVAL@GOTPAGE
Lloh46:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_21
LBB0_20:
	mov	x21, x0
LBB0_21:
	ldr	x0, [x19, #8]
	bl	_clk_disable_unprepare
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IORESOURCE_MEM,4,2             ; @IORESOURCE_MEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get interrupt resource\n"

l_.str.1:                               ; @.str.1
	.asciz	"error getting clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"unable to enable clock.\n"

	.comm	_i2c_lpc2k_handler,4,2          ; @i2c_lpc2k_handler
l_.str.3:                               ; @.str.3
	.asciz	"can't request interrupt.\n"

l_.str.4:                               ; @.str.4
	.asciz	"clock-frequency"

l_.str.5:                               ; @.str.5
	.asciz	"can't get I2C base clock\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I2C_STD_MODE_DUTY,4,2          ; @I2C_STD_MODE_DUTY
	.comm	_I2C_FAST_MODE_DUTY,4,2         ; @I2C_FAST_MODE_DUTY
	.comm	_I2C_FAST_MODE_PLUS_DUTY,4,2    ; @I2C_FAST_MODE_PLUS_DUTY
	.comm	_LPC24XX_I2SCLH,8,3             ; @LPC24XX_I2SCLH
	.comm	_LPC24XX_I2SCLL,8,3             ; @LPC24XX_I2SCLL
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.6:                               ; @.str.6
	.asciz	"LPC2K I2C adapter"

	.comm	_i2c_lpc2k_algorithm,4,2        ; @i2c_lpc2k_algorithm
l_.str.7:                               ; @.str.7
	.asciz	"LPC2K I2C adapter\n"

	.no_dead_strip	_i2c_lpc2k_probe
.subsections_via_symbols
