	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxsw_i2c_probe
_mlxsw_i2c_probe:                       ## @mlxsw_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	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, %r12
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.3:
	movq	(%rbx), %rsi
	movq	_MLXSW_I2C_BLK_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	cmpq	%r15, %rsi
	jl	LBB0_7
LBB0_5:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_8
## %bb.6:
	cmpq	%r15, %rdx
	jge	LBB0_8
LBB0_7:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_9:
	movq	_MLXSW_I2C_BLK_DEF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_u16@GOTPCREL(%rip), %rax
	movq	%r13, %rbx
	movl	(%rax), %r13d
	movl	%r13d, %edi
	callq	_min_t
	movl	%r13d, %edi
	movq	%rbx, %r13
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_max_t
LBB0_10:
	movq	%rax, 56(%r12)
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_mlxsw_i2c_write_cmd
	testl	%eax, %eax
	je	LBB0_13
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_12
LBB0_13:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_i2c_wait_go_bit
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_12:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_i2c_set_clientdata
LBB0_22:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.16:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_18:
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mlxsw_i2c_get_mbox
	testl	%eax, %eax
	js	LBB0_19
## %bb.20:
	movl	(%r13), %edx
	movl	44(%r12), %ecx
	movl	40(%r12), %r8d
	movl	32(%r12), %eax
	movl	36(%r12), %r9d
	movl	%eax, (%rsp)
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movl	(%r13), %eax
	movl	%eax, 20(%r12)
	movl	4(%r14), %eax
	movl	%eax, 16(%r12)
	movq	%r14, 8(%r12)
	movl	$1, (%r12)
	movq	%r14, 24(%r12)
	movq	_mlxsw_i2c_bus@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_mlxsw_core_bus_device_register
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r15d, %ebx
	jmp	LBB0_22
LBB0_19:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLXSW_I2C_BLK_DEF,8,3          ## @MLXSW_I2C_BLK_DEF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Insufficient transaction buffer length\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_u16,4,2                        ## @u16
L_.str.1:                               ## @.str.1
	.asciz	"Could not start transaction"

L_.str.2:                               ## @.str.2
	.asciz	"HW semaphore is not released"

L_.str.3:                               ## @.str.3
	.asciz	"Bad transaction completion status %x\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.4:                               ## @.str.4
	.asciz	"Fail to get mailboxes\n"

L_.str.5:                               ## @.str.5
	.asciz	"%s mb size=%x off=0x%08x out mb size=%x off=0x%08x\n"

	.comm	_mlxsw_i2c_bus,4,2              ## @mlxsw_i2c_bus
L_.str.6:                               ## @.str.6
	.asciz	"Fail to register core bus\n"

	.no_dead_strip	_mlxsw_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxsw_i2c_probe
_mlxsw_i2c_probe:                       ; @mlxsw_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	x21, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
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_5
; %bb.1:
	mov	x20, x0
	cbz	x23, LBB0_8
; %bb.2:
	ldr	x1, [x23]
Lloh3:
	adrp	x8, _MLXSW_I2C_BLK_DEF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MLXSW_I2C_BLK_DEF@GOTPAGEOFF]
Lloh5:
	ldr	x22, [x8]
	cmp	x1, #0
	ccmp	x1, x22, #0, ne
	b.lt	LBB0_6
; %bb.3:
	ldr	x2, [x23, #8]
	cmp	x2, #0
	ccmp	x2, x22, #0, ne
	b.lt	LBB0_6
; %bb.4:
Lloh6:
	adrp	x8, _u16@GOTPAGE
Lloh7:
	ldr	x8, [x8, _u16@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	mov	x0, x23
	bl	_min_t
	mov	x2, x0
	mov	x0, x23
	mov	x1, x22
	bl	_max_t
	b	LBB0_9
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh13:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_15
LBB0_8:
Lloh15:
	adrp	x8, _MLXSW_I2C_BLK_DEF@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MLXSW_I2C_BLK_DEF@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
LBB0_9:
	str	x0, [x20, #56]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	add	x0, x20, #48
	bl	_mutex_init
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_mlxsw_i2c_write_cmd
	cbz	w0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_i2c_wait_go_bit
	cbz	w0, LBB0_16
; %bb.12:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	mov	x0, x19
	bl	_dev_err
LBB0_14:
	mov	x0, x19
	mov	x1, #0
	bl	_i2c_set_clientdata
LBB0_15:
	mov	x0, x22
	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
LBB0_16:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_18
; %bb.17:
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str.3@PAGE
Lloh23:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh24:
	adrp	x8, _EIO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_18:
	mov	x0, x19
	mov	x1, x20
	bl	_mlxsw_i2c_get_mbox
	tbnz	w0, #31, LBB0_21
; %bb.19:
	ldr	w2, [x21]
	ldp	w4, w3, [x20, #40]
	ldp	w6, w5, [x20, #32]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w8, [x21]
	ldr	w9, [x19, #4]
	stp	w9, w8, [x20, #16]
	str	x19, [x20, #8]
	mov	w8, #1
	str	w8, [x20]
	str	x19, [x20, #24]
Lloh29:
	adrp	x1, _mlxsw_i2c_bus@GOTPAGE
Lloh30:
	ldr	x1, [x1, _mlxsw_i2c_bus@GOTPAGEOFF]
	mov	x0, x20
	mov	x2, x20
	mov	w3, #0
	mov	x4, #0
	bl	_mlxsw_core_bus_device_register
	mov	x22, x0
	cbz	w0, LBB0_15
; %bb.20:
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_15
LBB0_21:
	mov	x22, x0
Lloh33:
	adrp	x1, l_.str.4@PAGE
Lloh34:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLXSW_I2C_BLK_DEF,8,3          ; @MLXSW_I2C_BLK_DEF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Insufficient transaction buffer length\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_u16,4,2                        ; @u16
l_.str.1:                               ; @.str.1
	.asciz	"Could not start transaction"

l_.str.2:                               ; @.str.2
	.asciz	"HW semaphore is not released"

l_.str.3:                               ; @.str.3
	.asciz	"Bad transaction completion status %x\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.4:                               ; @.str.4
	.asciz	"Fail to get mailboxes\n"

l_.str.5:                               ; @.str.5
	.asciz	"%s mb size=%x off=0x%08x out mb size=%x off=0x%08x\n"

	.comm	_mlxsw_i2c_bus,4,2              ; @mlxsw_i2c_bus
l_.str.6:                               ; @.str.6
	.asciz	"Fail to register core bus\n"

	.no_dead_strip	_mlxsw_i2c_probe
.subsections_via_symbols
