	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function create_queues_with_size_backoff
_create_queues_with_size_backoff:       ## @create_queues_with_size_backoff
	.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	%rdi, %r13
	movl	(%rdi), %esi
	movl	4(%rdi), %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	callq	_set_io_rings_size
	movq	%r13, %rdi
	callq	_ena_setup_all_tx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ena_create_all_io_tx_queues
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ena_setup_all_rx_resources
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ena_create_all_io_rx_queues
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_ena_free_all_io_rx_resources
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ena_destroy_all_tx_queues
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_ena_free_all_io_tx_resources
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	24(%r13), %rax
	movl	(%rax), %r15d
	movq	16(%r13), %rax
	movl	(%rax), %ebx
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	movq	%r13, %rdi
	leaq	L_.str.1(%rip), %rcx
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	movl	%r15d, %r14d
	cmpl	%r15d, %ebx
	jg	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r14d
	shrl	$31, %r14d
	addl	%r15d, %r14d
	sarl	%r14d
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r15d, %ebx
	jl	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	shrl	$31, %eax
	addl	%ebx, %eax
	sarl	%eax
	movl	%eax, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_ENA_MIN_RING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	cmpl	%r8d, %r14d
	jl	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%r8d, %ebx
	jl	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.3(%rip), %rcx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_netif_err
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	jmp	LBB0_1
LBB0_10:
	movq	_ifup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r13, %rdi
	movl	%r12d, %r8d
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.2(%rip), %rcx
	movq	%r13, %rdi
LBB0_18:
	xorl	%eax, %eax
	callq	_netif_err
LBB0_19:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ifup,4,2                       ## @ifup
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Queue creation failed with error code %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Not enough memory to create queues with sizes TX=%d, RX=%d\n"

	.comm	_ENA_MIN_RING_SIZE,4,2          ## @ENA_MIN_RING_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Queue creation failed with the smallest possible queue size of %d for both queues. Not retrying with smaller queues\n"

L_.str.3:                               ## @.str.3
	.asciz	"Retrying queue creation with sizes TX=%d, RX=%d\n"

	.no_dead_strip	_create_queues_with_size_backoff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function create_queues_with_size_backoff
_create_queues_with_size_backoff:       ; @create_queues_with_size_backoff
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldp	w1, w2, [x0]
	bl	_set_io_rings_size
Lloh0:
	adrp	x26, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ENOMEM@GOTPAGEOFF]
Lloh2:
	adrp	x25, _ifup@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ifup@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh6:
	adrp	x27, _ENA_MIN_RING_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _ENA_MIN_RING_SIZE@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.3@PAGE
Lloh9:
	add	x21, x21, l_.str.3@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ena_setup_all_tx_resources
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_create_all_io_tx_queues
	mov	x22, x0
	cbnz	w0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_setup_all_rx_resources
	mov	x22, x0
	cbnz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_create_all_io_rx_queues
	mov	x22, x0
	cbz	w0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_free_all_io_rx_resources
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_destroy_all_tx_queues
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_ena_free_all_io_tx_resources
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x26]
	cmn	w22, w8
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldp	x9, x8, [x19, #16]
	ldr	w23, [x8]
	ldr	w24, [x9]
	ldr	w1, [x25]
	ldr	w2, [x19, #8]
	str	x24, [sp]
	mov	x0, x19
	mov	x3, x20
	mov	x4, x23
	bl	_netif_err
	cmp	w23, #0
	cinc	w8, w23, lt
	asr	w8, w8, #1
	cmp	w24, #0
	cinc	w9, w24, lt
	cmp	w24, w23
	csel	w23, w23, w8, gt
	asr	w8, w9, #1
	csel	w24, w24, w8, lt
	ldr	w4, [x27]
	ldr	w1, [x25]
	ldr	w2, [x19, #8]
	cmp	w23, w4
	ccmp	w24, w4, #8, ge
	b.lt	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	str	x24, [sp]
	mov	x0, x19
	mov	x3, x21
	mov	x4, x23
	bl	_netif_err
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_set_io_rings_size
	b	LBB0_1
LBB0_11:
	ldr	w1, [x25]
	ldr	w2, [x19, #8]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x22
	b	LBB0_13
LBB0_12:
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
LBB0_13:
	bl	_netif_err
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ifup,4,2                       ; @ifup
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Queue creation failed with error code %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Not enough memory to create queues with sizes TX=%d, RX=%d\n"

	.comm	_ENA_MIN_RING_SIZE,4,2          ; @ENA_MIN_RING_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Queue creation failed with the smallest possible queue size of %d for both queues. Not retrying with smaller queues\n"

l_.str.3:                               ; @.str.3
	.asciz	"Retrying queue creation with sizes TX=%d, RX=%d\n"

	.no_dead_strip	_create_queues_with_size_backoff
.subsections_via_symbols
