	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxcpld_i2c_probe
_mlxcpld_i2c_probe:                     ## @mlxcpld_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	4(%rdi), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_init
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	%r15, 48(%rbx)
	movq	_MLXPLAT_CPLD_LPC_I2C_BASE_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_MLXCPLD_I2C_XFER_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usecs_to_jiffies
	movq	_mlxcpld_i2c_adapter@GOTPCREL(%rip), %r13
	movl	%eax, 24(%r13)
	movq	_MLXCPLD_LPCI2C_CPBLTY_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$1, %ecx
	callq	_mlxcpld_i2c_read_comm
	movl	-44(%rbp), %eax
	movq	_MLXCPLD_I2C_DATA_SZ_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	movq	_MLXCPLD_I2C_DATA_SZ_BIT@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_4
## %bb.3:
	movq	_mlxcpld_i2c_quirks_ext@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%r13)
LBB0_4:
	movq	_MLXCPLD_I2C_SMBUS_BLK_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movl	$1, (%rbx)
LBB0_6:
	movl	(%r12), %eax
	cmpl	$-1, %eax
	jl	LBB0_8
## %bb.7:
	movl	%eax, (%r13)
LBB0_8:
	movq	%rbx, %r12
	addq	$8, %r12
	movups	(%r13), %xmm0
	movups	16(%r13), %xmm1
	movups	%xmm0, 8(%rbx)
	movups	%xmm1, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r12, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_destroy
	jmp	LBB0_11
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXPLAT_CPLD_LPC_I2C_BASE_ADDR,4,2 ## @MLXPLAT_CPLD_LPC_I2C_BASE_ADDR
	.comm	_MLXCPLD_I2C_XFER_TO,4,2        ## @MLXCPLD_I2C_XFER_TO
	.comm	_mlxcpld_i2c_adapter,32,3       ## @mlxcpld_i2c_adapter
	.comm	_MLXCPLD_LPCI2C_CPBLTY_REG,4,2  ## @MLXCPLD_LPCI2C_CPBLTY_REG
	.comm	_MLXCPLD_I2C_DATA_SZ_MASK,4,2   ## @MLXCPLD_I2C_DATA_SZ_MASK
	.comm	_MLXCPLD_I2C_DATA_SZ_BIT,4,2    ## @MLXCPLD_I2C_DATA_SZ_BIT
	.comm	_mlxcpld_i2c_quirks_ext,4,2     ## @mlxcpld_i2c_quirks_ext
	.comm	_MLXCPLD_I2C_SMBUS_BLK_BIT,4,2  ## @MLXCPLD_I2C_SMBUS_BLK_BIT
	.no_dead_strip	_mlxcpld_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxcpld_i2c_probe
_mlxcpld_i2c_probe:                     ; @mlxcpld_i2c_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x0
	add	x19, x0, #4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	add	x20, x0, #4
	mov	x0, x20
	bl	_mutex_init
	mov	x0, x22
	mov	x1, x21
	bl	_platform_set_drvdata
Lloh3:
	adrp	x8, _MLXPLAT_CPLD_LPC_I2C_BASE_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXPLAT_CPLD_LPC_I2C_BASE_ADDR@GOTPAGEOFF]
	str	x19, [x21, #48]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x21, #40]
Lloh6:
	adrp	x8, _MLXCPLD_I2C_XFER_TO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MLXCPLD_I2C_XFER_TO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_usecs_to_jiffies
Lloh9:
	adrp	x23, _mlxcpld_i2c_adapter@GOTPAGE
Lloh10:
	ldr	x23, [x23, _mlxcpld_i2c_adapter@GOTPAGEOFF]
	str	w0, [x23, #24]
Lloh11:
	adrp	x8, _MLXCPLD_LPCI2C_CPBLTY_REG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MLXCPLD_LPCI2C_CPBLTY_REG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x21
	mov	w3, #1
	bl	_mlxcpld_i2c_read_comm
	ldr	w8, [sp, #12]
Lloh14:
	adrp	x9, _MLXCPLD_I2C_DATA_SZ_MASK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MLXCPLD_I2C_DATA_SZ_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh17:
	adrp	x10, _MLXCPLD_I2C_DATA_SZ_BIT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MLXCPLD_I2C_DATA_SZ_BIT@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.2:
Lloh20:
	adrp	x9, _mlxcpld_i2c_quirks_ext@GOTPAGE
Lloh21:
	ldr	x9, [x9, _mlxcpld_i2c_quirks_ext@GOTPAGEOFF]
	str	x9, [x23, #16]
LBB0_3:
Lloh22:
	adrp	x9, _MLXCPLD_I2C_SMBUS_BLK_BIT@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MLXCPLD_I2C_SMBUS_BLK_BIT@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x21]
LBB0_5:
	ldr	w8, [x22]
	cmn	w8, #1
	b.lt	LBB0_7
; %bb.6:
	str	w8, [x23]
LBB0_7:
	add	x22, x21, #8
	ldp	q1, q0, [x23]
	stur	q1, [x21, #8]
	stur	q0, [x21, #24]
	str	x19, [x21, #16]
	mov	x0, x22
	mov	x1, x21
	bl	_i2c_set_adapdata
	mov	x0, x22
	bl	_i2c_add_numbered_adapter
	mov	x19, x0
	cbz	w0, LBB0_10
; %bb.8:
	mov	x0, x20
	bl	_mutex_destroy
	b	LBB0_10
LBB0_9:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXPLAT_CPLD_LPC_I2C_BASE_ADDR,4,2 ; @MLXPLAT_CPLD_LPC_I2C_BASE_ADDR
	.comm	_MLXCPLD_I2C_XFER_TO,4,2        ; @MLXCPLD_I2C_XFER_TO
	.comm	_mlxcpld_i2c_adapter,32,3       ; @mlxcpld_i2c_adapter
	.comm	_MLXCPLD_LPCI2C_CPBLTY_REG,4,2  ; @MLXCPLD_LPCI2C_CPBLTY_REG
	.comm	_MLXCPLD_I2C_DATA_SZ_MASK,4,2   ; @MLXCPLD_I2C_DATA_SZ_MASK
	.comm	_MLXCPLD_I2C_DATA_SZ_BIT,4,2    ; @MLXCPLD_I2C_DATA_SZ_BIT
	.comm	_mlxcpld_i2c_quirks_ext,4,2     ; @mlxcpld_i2c_quirks_ext
	.comm	_MLXCPLD_I2C_SMBUS_BLK_BIT,4,2  ; @MLXCPLD_I2C_SMBUS_BLK_BIT
	.no_dead_strip	_mlxcpld_i2c_probe
.subsections_via_symbols
