	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intf_next_seq
_intf_next_seq:                         ## @intf_next_seq
	.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	%r9, -48(%rbp)                  ## 8-byte Spill
	movq	%rdx, %r9
	movq	%rdi, %r15
	movl	(%rdi), %r14d
	movq	_IPMI_IPMB_NUM_SEQ@GOTPCREL(%rip), %rax
	movl	(%rax), %r11d
	movq	8(%rdi), %r10
	movl	%r14d, %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %r13d
	leal	1(%r13), %ebx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r11d
	movl	%r13d, %eax
	leaq	(%rax,%rax,2), %rdi
	shlq	$4, %rdi
	movl	(%r10,%rdi), %r12d
	cmpl	%r14d, %edx
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_1
	jmp	LBB0_4
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_6
LBB0_4:
	shlq	$4, %rax
	leaq	(%rax,%rax,2), %r14
	movq	%rsi, 40(%r10,%r14)
	movq	_MAX_MSG_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r10,%r14)
	movq	%r9, 8(%r10,%r14)
	movl	%ecx, 16(%r10,%r14)
	movl	%r8d, 20(%r10,%r14)
	movl	$1, (%r10,%r14)
	movq	24(%r10,%r14), %rdi
	callq	_NEXT_SEQID
	movq	8(%r15), %rcx
	movq	%rax, 24(%rcx,%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movb	%r13b, (%rax)
	movq	8(%r15), %rax
	movq	24(%rax,%r14), %rax
	movq	16(%rbp), %rcx
	movq	%rax, (%rcx)
	xorl	%ecx, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	movq	_IPMI_IPMB_NUM_SEQ@GOTPCREL(%rip), %rsi
	divl	(%rsi)
	movl	%edx, (%r15)
LBB0_6:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPMI_IPMB_NUM_SEQ,4,2          ## @IPMI_IPMB_NUM_SEQ
	.comm	_MAX_MSG_TIMEOUT,4,2            ## @MAX_MSG_TIMEOUT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_intf_next_seq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intf_next_seq
_intf_next_seq:                         ; @intf_next_seq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x6
	mov	x21, x5
	mov	x20, x0
	ldr	w9, [x0]
Lloh0:
	adrp	x22, _IPMI_IPMB_NUM_SEQ@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IPMI_IPMB_NUM_SEQ@GOTPAGEOFF]
	ldr	w10, [x22]
	ldr	x8, [x0, #8]
	mov	w11, #48
	mov	x12, x9
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x12
	add	w23, w12, #1
	udiv	w12, w23, w10
	msub	w12, w12, w10, w23
	umull	x13, w24, w11
	ldr	w13, [x8, x13]
	cmp	w12, w9
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	w13, LBB0_1
	b	LBB0_5
LBB0_3:
	cbz	w13, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_5:
	mov	w9, w24
	add	x9, x9, x9, lsl #1
	lsl	x25, x9, #4
	add	x8, x8, x25
	str	x1, [x8, #40]
Lloh5:
	adrp	x9, _MAX_MSG_TIMEOUT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_MSG_TIMEOUT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8, #32]
	str	x2, [x8, #8]
	stp	w3, w4, [x8, #16]
	mov	w9, #1
	str	w9, [x8]
	ldr	x0, [x8, #24]
	bl	_NEXT_SEQID
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x20, #8]
	add	x9, x9, x25
	str	x8, [x9, #24]
	strb	w24, [x21]
	ldr	x8, [x20, #8]
	add	x8, x8, x25
	ldr	x8, [x8, #24]
	str	x8, [x19]
	ldr	w8, [x22]
	udiv	w9, w23, w8
	msub	w8, w9, w8, w23
	str	w8, [x20]
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IPMI_IPMB_NUM_SEQ,4,2          ; @IPMI_IPMB_NUM_SEQ
	.comm	_MAX_MSG_TIMEOUT,4,2            ; @MAX_MSG_TIMEOUT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_intf_next_seq
.subsections_via_symbols
