	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_dcbx_join_pgs
_bnx2x_dcbx_join_pgs:                   ## @bnx2x_dcbx_join_pgs
	.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, -56(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	je	LBB0_11
## %bb.1:
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movq	8(%rdx), %rdi
	callq	_ARRAY_SIZE
	movl	(%r13), %ebx
	cmpl	%ebx, %eax
	jle	LBB0_11
## %bb.2:
	cmpl	%r14d, %ebx
	jle	LBB0_9
## %bb.3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%rax,%r12,8), %rax
	movq	%rcx, (%rax)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %ebx
	decl	%ebx
	movl	%ebx, (%r13)
	cmpl	%r14d, %ebx
	jle	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-2(%rbx), %r12d
	decl	%ebx
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %ecx
	movl	%ebx, %eax
	cltd
	idivl	%ecx
	movq	8(%r13), %rax
	movslq	%edx, %rcx
	leaq	(%rcx,%rcx,2), %r15
	movl	16(%rax,%r15,8), %ecx
	movslq	%r12d, %rdx
	leaq	(%rdx,%rdx,2), %r12
	orl	%ecx, 16(%rax,%r12,8)
	movq	8(%rax,%r15,8), %rcx
	addq	%rcx, 8(%rax,%r12,8)
	movq	(%rax,%r12,8), %rsi
	movq	_DCBX_STRICT_PRI_PG@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, (%rax,%r15,8)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	callq	_DCBX_PG_BW_GET
	movl	%eax, %ebx
	movl	(%r14), %edi
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rsi
	callq	_DCBX_PG_BW_GET
	addl	%eax, %ebx
	movl	(%r14), %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movq	8(%r13), %rax
	movq	(%rax,%r12,8), %rsi
	movl	%ebx, %edx
	callq	_DCBX_PG_BW_SET
	jmp	LBB0_8
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"required_num_of_pg can't be zero\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DCBX_STRICT_PRI_PG,8,3         ## @DCBX_STRICT_PRI_PG
	.no_dead_strip	_bnx2x_dcbx_join_pgs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_dcbx_join_pgs
_bnx2x_dcbx_join_pgs:                   ; @bnx2x_dcbx_join_pgs
	.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
	cbz	w3, LBB0_9
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	ldr	x0, [x2, #8]
	bl	_ARRAY_SIZE
	ldr	w8, [x20]
	cmp	w0, w8
	b.le	LBB0_9
; %bb.2:
	cmp	w8, w19
	b.le	LBB0_10
; %bb.3:
	mov	w23, #24
Lloh0:
	adrp	x24, _DCBX_STRICT_PRI_PG@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DCBX_STRICT_PRI_PG@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x11, [x8]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	cmp	w8, w19
	b.le	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x9, w8
	sub	x25, x9, #2
	sub	w22, w8, #1
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	sdiv	w8, w22, w0
	msub	w10, w8, w0, w22
	ldr	x9, [x20, #8]
	smaddl	x11, w10, w23, x9
	ldr	w12, [x11, #16]
	madd	x8, x25, x23, x9
	ldr	w13, [x8, #16]
	orr	w12, w13, w12
	str	w12, [x8, #16]
	ldr	x11, [x11, #8]
	ldp	x1, x12, [x8]
	add	x11, x12, x11
	str	x11, [x8, #8]
	ldr	x11, [x24]
	cmp	x1, x11
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sxtw	x26, w10
	mul	x10, x26, x23
	ldr	x9, [x9, x10]
	cmp	x9, x11
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w0, [x21]
	bl	_DCBX_PG_BW_GET
	mov	x22, x0
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	mul	x9, x26, x23
	ldr	x1, [x8, x9]
	bl	_DCBX_PG_BW_GET
	add	w2, w0, w22
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	mul	x9, x25, x23
	ldr	x1, [x8, x9]
	bl	_DCBX_PG_BW_SET
	b	LBB0_5
LBB0_9:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"required_num_of_pg can't be zero\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DCBX_STRICT_PRI_PG,8,3         ; @DCBX_STRICT_PRI_PG
	.no_dead_strip	_bnx2x_dcbx_join_pgs
.subsections_via_symbols
