	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evdns_base_set_max_requests_inflight
_evdns_base_set_max_requests_inflight:  ## @evdns_base_set_max_requests_inflight
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r12
	callq	_ASSERT_LOCKED
	cmpl	$2, %r14d
	movl	$1, %eax
	cmovll	%eax, %r14d
	leal	4(%r14), %eax
	movl	$3435973837, %r13d              ## imm = 0xCCCCCCCD
	imulq	%rax, %r13
	shrq	$34, %r13
	movl	$1, %edi
	callq	_EVUTIL_ASSERT
	movl	%r13d, %edi
	movl	$8, %esi
	callq	_mm_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	testq	%r12, %r12
	je	LBB0_10
## %bb.3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_9
## %bb.4:
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	cmpq	-56(%rbp), %r12                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %r14
	testq	%r14, %r14
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,8), %r15
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_evdns_request_remove
	movl	(%r14), %eax
	cltd
	idivl	%r13d
	movslq	%edx, %rax
	leaq	(%rbx,%rax,8), %rsi
	movq	%r14, %rdi
	callq	_evdns_request_insert
	movq	(%r15), %r14
	testq	%r14, %r14
	jne	LBB0_7
	jmp	LBB0_8
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mm_free
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	movq	%rbx, 8(%r15)
	movl	%r13d, (%r15)
	movl	%r14d, 4(%r15)
	xorl	%eax, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_evdns_base_set_max_requests_inflight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evdns_base_set_max_requests_inflight
_evdns_base_set_max_requests_inflight:  ; @evdns_base_set_max_requests_inflight
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x1
	mov	x19, x0
	ldr	w26, [x0]
	ldr	x20, [x0, #8]
	bl	_ASSERT_LOCKED
	cmp	w21, #1
	csinc	w25, w21, wzr, gt
	add	w8, w25, #4
	mov	w9, #52429
	movk	w9, #52428, lsl #16
	umull	x8, w8, w9
	lsr	x21, x8, #34
	mov	w0, #1
	bl	_EVUTIL_ASSERT
	mov	x0, x21
	mov	w1, #8
	bl	_mm_calloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	cbz	x20, LBB0_9
; %bb.2:
	cmp	w26, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x27, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	cmp	x27, x26
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x23, x20, x27, lsl #3
	ldr	x24, [x23]
	cbz	x24, LBB0_4
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	x1, x23
	bl	_evdns_request_remove
	ldr	w8, [x24]
	sdiv	w9, w8, w21
	msub	w8, w9, w21, w8
	add	x1, x22, w8, sxtw #3
	mov	x0, x24
	bl	_evdns_request_insert
	ldr	x24, [x23]
	cbnz	x24, LBB0_6
	b	LBB0_4
LBB0_7:
	mov	w0, #-1
	b	LBB0_10
LBB0_8:
	mov	x0, x20
	bl	_mm_free
LBB0_9:
	mov	w0, #0
	str	x22, [x19, #8]
	stp	w21, w25, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_evdns_base_set_max_requests_inflight
.subsections_via_symbols
