	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __mlxsw_item_offset
___mlxsw_item_offset:                   ## @__mlxsw_item_offset
	.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	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rbx)
	sete	%dil
LBB0_2:
	callq	_BUG_ON
	movq	8(%rbx), %r9
	movq	%r9, %rax
	orq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%r9, %rax
	xorl	%edx, %edx
	divq	%r15
	jmp	LBB0_5
LBB0_3:
	movl	%r9d, %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
LBB0_5:
	movq	(%rbx), %rcx
	testq	%rdx, %rdx
	jne	LBB0_14
## %bb.6:
	movq	%rcx, %rax
	orq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_7
## %bb.8:
	movq	%rcx, %rax
	xorl	%edx, %edx
	divq	%r15
	testq	%rdx, %rdx
	jne	LBB0_14
	jmp	LBB0_10
LBB0_7:
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_14
LBB0_10:
	movq	16(%rbx), %rsi
	movq	%rsi, %rax
	orq	%r15, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%r15
	testq	%rdx, %rdx
	je	LBB0_15
LBB0_14:
	movl	24(%rbx), %esi
	movq	16(%rbx), %r8
	leaq	L_.str(%rip), %rdi
	movq	%r9, %rdx
	movq	%r15, %r9
	callq	_pr_err
	xorl	%eax, %eax
	callq	_BUG
	movq	(%rbx), %rcx
	movq	8(%rbx), %r9
	movq	16(%rbx), %rsi
LBB0_15:
	movzwl	%r14w, %eax
	imulq	%rcx, %rax
	addq	%r9, %rax
	addq	%rsi, %rax
	movq	%rax, %rcx
	orq	%r15, %rcx
	shrq	$32, %rcx
	je	LBB0_16
## %bb.17:
	xorl	%edx, %edx
	divq	%r15
	jmp	LBB0_18
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $eax killed $eax def $rax
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $edx killed $edx def $rdx
	testq	%rdx, %rdx
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mlxsw: item bug (name=%s,offset=%x,step=%x,in_step_offset=%x,typesize=%zx)\n"

	.no_dead_strip	___mlxsw_item_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __mlxsw_item_offset
___mlxsw_item_offset:                   ; @__mlxsw_item_offset
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	cbz	w1, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, eq
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_BUG_ON
	ldp	x3, x2, [x21]
	udiv	x8, x2, x19
	msub	x8, x8, x19, x2
	cbnz	x8, LBB0_6
; %bb.4:
	udiv	x8, x3, x19
	msub	x8, x8, x19, x3
	cbnz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x21, #16]
	udiv	x9, x8, x19
	msub	x9, x9, x19, x8
	cbz	x9, LBB0_7
LBB0_6:
	ldr	w1, [x21, #24]
	ldr	x4, [x21, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x5, x19
	bl	_pr_err
	bl	_BUG
	ldp	x3, x2, [x21]
	ldr	x8, [x21, #16]
LBB0_7:
	mov	w9, w20
	madd	x9, x3, x9, x2
	add	x8, x9, x8
	udiv	x0, x8, x19
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mlxsw: item bug (name=%s,offset=%x,step=%x,in_step_offset=%x,typesize=%zx)\n"

	.no_dead_strip	___mlxsw_item_offset
.subsections_via_symbols
