	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_format_ver
_bnx2x_format_ver:                      ## @bnx2x_format_ver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$10, (%rdx)
	jge	LBB0_1
## %bb.11:
	movl	$0, (%rsi)
	decl	(%rdx)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbp
	retq
LBB0_1:
	movl	$-268435456, %r8d               ## imm = 0xF0000000
	movl	$32, %ecx
	movl	$1, %r9d
	addl	$-4, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %eax
	andl	%edi, %eax
	sarl	%cl, %eax
	testl	%r9d, %r9d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	sarl	$4, %r8d
	leal	-4(%rcx), %eax
	addl	$4, %ecx
	movl	$1, %r9d
	cmpl	$4, %ecx
	movl	%eax, %ecx
	ja	LBB0_2
	jmp	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	87(%rax), %r9d
	leal	48(%rax), %r10d
	cmpl	$10, %eax
	cmovgel	%r9d, %r10d
	movl	%r10d, (%rsi)
	decl	(%rdx)
	leal	4(%rcx), %r10d
	xorl	%eax, %eax
	cmpl	$16, %ecx
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$46, 4(%rsi)
	addq	$8, %rsi
	decl	(%rdx)
	movl	$1, %r9d
	jmp	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %rsi
	xorl	%r9d, %r9d
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	sarl	$4, %r8d
	cmpl	$5, %r10d
	jb	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	addl	$-4, %ecx
	jmp	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_bnx2x_format_ver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_format_ver
_bnx2x_format_ver:                      ; @bnx2x_format_ver
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
	cmp	w8, #10
	b.ge	LBB0_3
; %bb.1:
	str	wzr, [x1]
	ldr	w8, [x2]
	sub	w8, w8, #1
	str	w8, [x2]
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w8, w8
LBB0_2:
	mov	x0, x8
	ret
LBB0_3:
	mov	w9, #-268435456
	mov	w10, #32
	mov	w14, #1
	mov	w11, #87
	mov	w12, #48
	mov	w13, #46
	sub	w10, w10, #4
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w8, w9, w0
	asr	w8, w8, w10
	asr	w9, w9, #4
	cbz	w14, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w10, #4
	sub	w10, w10, #4
	mov	w14, #1
	cmp	w8, #4
	b.hi	LBB0_4
	b	LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #10
	csel	w14, w12, w11, lt
	add	w14, w14, w8
	mov	x8, x1
	str	w14, [x8], #4
	ldr	w14, [x2]
	sub	w14, w14, #1
	str	w14, [x2]
	cmp	w10, #16
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w13, [x1, #4]
	add	x1, x1, #8
	ldr	w8, [x2]
	sub	w8, w8, #1
	str	w8, [x2]
	mov	w14, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w14, #0
	mov	x1, x8
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	add	w15, w10, #4
	cmp	w15, #5
	b.lo	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w10, w10, #4
	b	LBB0_4
LBB0_12:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_bnx2x_format_ver
.subsections_via_symbols
