	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_findzonecut2               ## -- Begin function res_findzonecut2
	.p2align	4, 0x90
_res_findzonecut2:                      ## @res_findzonecut2
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_NS_MAXDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	%r12d, %edi
	callq	_p_class
	movslq	24(%rbp), %rdi
	callq	_DPRINTF
	movl	(%r13), %ebx
	movq	_RES_PRF_HEAD2@GOTPCREL(%rip), %rax
	movq	_RES_PRF_HEAD1@GOTPCREL(%rip), %rcx
	movq	_RES_PRF_HEADX@GOTPCREL(%rip), %rdx
	movq	_RES_PRF_QUES@GOTPCREL(%rip), %rsi
	movq	_RES_PRF_ANS@GOTPCREL(%rip), %rdi
	movq	_RES_PRF_AUTH@GOTPCREL(%rip), %r8
	movl	(%rax), %eax
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	orl	%ebx, %eax
	movl	%r15d, %ebx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	orl	(%rsi), %eax
	orl	(%rdi), %eax
	orl	(%r8), %eax
	movq	_RES_PRF_ADD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r13)
	callq	_INIT_LIST
	leaq	L_.str.1(%rip), %rdi
	callq	_DPRINTF
	subq	$8, %rsp
	leaq	-52(%rbp), %rax
	movq	%r13, %r15
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, -72(%rbp)                ## 4-byte Spill
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	%r8, %r12
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	pushq	%rax
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	pushq	%r14
	callq	_get_soa
	addq	$32, %rsp
	testl	%eax, %eax
	js	LBB0_1
## %bb.3:
	movq	16(%rbp), %rcx
	movq	_RES_EXHAUSTIVE@GOTPCREL(%rip), %r14
	testl	%ebx, (%r14)
	je	LBB0_4
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	callq	_DPRINTF
	leaq	-52(%rbp), %r8
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	-72(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	callq	_get_ns
	testl	%eax, %eax
	js	LBB0_1
## %bb.7:
	testl	%ebx, (%r14)
	je	LBB0_8
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	callq	_DPRINTF
	leaq	-52(%rbp), %rcx
	movq	%r15, %rdi
	movl	-72(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_get_glue
	testl	%eax, %eax
	js	LBB0_1
## %bb.10:
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movl	24(%rbp), %r8d
	callq	_satisfy
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_2
LBB0_1:
	movl	%eax, %r13d
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	movq	%rax, %rdi
	jmp	LBB0_12
LBB0_4:
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	24(%rbp), %r8d
	callq	_satisfy
	testl	%eax, %eax
	jg	LBB0_5
	jmp	LBB0_6
LBB0_8:
	leaq	-52(%rbp), %rdx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	16(%rbp), %rcx
	movl	24(%rbp), %r8d
	callq	_satisfy
	testl	%eax, %eax
	jle	LBB0_9
LBB0_5:
	movl	%eax, %r13d
LBB0_11:
	leaq	L_.str.5(%rip), %rdi
LBB0_12:
	callq	_DPRINTF
	leaq	-52(%rbp), %rdi
	callq	_free_nsrrset
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_NS_MAXDNAME,4,2                ## @NS_MAXDNAME
	.comm	_RES_PRF_HEAD2,4,2              ## @RES_PRF_HEAD2
	.comm	_RES_PRF_HEAD1,4,2              ## @RES_PRF_HEAD1
	.comm	_RES_PRF_HEADX,4,2              ## @RES_PRF_HEADX
	.comm	_RES_PRF_QUES,4,2               ## @RES_PRF_QUES
	.comm	_RES_PRF_ANS,4,2                ## @RES_PRF_ANS
	.comm	_RES_PRF_AUTH,4,2               ## @RES_PRF_AUTH
	.comm	_RES_PRF_ADD,4,2                ## @RES_PRF_ADD
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"get the soa, and see if it has enough glue"

	.comm	_RES_EXHAUSTIVE,4,2             ## @RES_EXHAUSTIVE
L_.str.2:                               ## @.str.2
	.asciz	"get the ns rrset and see if it has enough glue"

L_.str.3:                               ## @.str.3
	.asciz	"get the missing glue and see if it's finally enough"

	.comm	_errno,4,2                      ## @errno
L_.str.5:                               ## @.str.5
	.asciz	"OK"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_findzonecut2               ; -- Begin function res_findzonecut2
	.p2align	2
_res_findzonecut2:                      ; @res_findzonecut2
	.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
	sub	sp, sp, #32
	mov	x20, x7
	stur	x6, [x29, #-104]                ; 8-byte Folded Spill
	mov	x26, x5
	mov	x25, x4
	mov	x22, x3
	mov	x23, x2
	mov	x28, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _NS_MAXDNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NS_MAXDNAME@GOTPAGEOFF]
Lloh5:
	ldr	w27, [x8]
	mov	x9, x27
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x27, #15
	and	x9, x9, #0x1fffffff0
	sub	x24, x8, x9
	mov	sp, x24
	mov	x0, x2
	bl	_p_class
	sxtw	x0, w20
	bl	_DPRINTF
	ldr	w21, [x19]
Lloh8:
	adrp	x8, _RES_PRF_HEAD2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RES_PRF_HEAD2@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _RES_PRF_HEAD1@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RES_PRF_HEAD1@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _RES_PRF_HEADX@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RES_PRF_HEADX@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _RES_PRF_QUES@GOTPAGE
Lloh18:
	ldr	x11, [x11, _RES_PRF_QUES@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
Lloh20:
	adrp	x12, _RES_PRF_ANS@GOTPAGE
Lloh21:
	ldr	x12, [x12, _RES_PRF_ANS@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
Lloh23:
	adrp	x13, _RES_PRF_AUTH@GOTPAGE
Lloh24:
	ldr	x13, [x13, _RES_PRF_AUTH@GOTPAGEOFF]
Lloh25:
	ldr	w13, [x13]
Lloh26:
	adrp	x14, _RES_PRF_ADD@GOTPAGE
Lloh27:
	ldr	x14, [x14, _RES_PRF_ADD@GOTPAGEOFF]
Lloh28:
	ldr	w14, [x14]
	orr	w8, w8, w21
	orr	w8, w8, w9
	orr	w8, w8, w10
	orr	w8, w8, w11
	orr	w8, w8, w12
	orr	w8, w8, w13
	orr	w8, w8, w14
	str	w8, [x19]
	bl	_INIT_LIST
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	sub	x8, x29, #92
	str	x8, [sp, #-16]!
	mov	x0, x19
	mov	x1, x28
	mov	x2, x23
	mov	x3, x22
	mov	x4, x25
	mov	x5, x26
	mov	x6, x24
	mov	x7, x27
	bl	_get_soa
	add	sp, sp, #16
	tbnz	w0, #31, LBB0_6
; %bb.1:
Lloh31:
	adrp	x27, _RES_EXHAUSTIVE@GOTPAGE
Lloh32:
	ldr	x27, [x27, _RES_EXHAUSTIVE@GOTPAGEOFF]
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_8
LBB0_2:
Lloh33:
	adrp	x0, l_.str.2@PAGE
Lloh34:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPRINTF
	sub	x4, x29, #92
	mov	x0, x19
	mov	x1, x25
	mov	x2, x23
	mov	x3, x22
	bl	_get_ns
	tbnz	w0, #31, LBB0_6
; %bb.3:
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_9
LBB0_4:
Lloh35:
	adrp	x0, l_.str.3@PAGE
Lloh36:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DPRINTF
	sub	x3, x29, #92
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_get_glue
	tbnz	w0, #31, LBB0_6
; %bb.5:
	sub	x2, x29, #92
	mov	x0, x19
	mov	x1, x24
	ldur	x3, [x29, #-104]                ; 8-byte Folded Reload
	mov	x4, x20
	bl	_satisfy
	mov	x26, x0
	tbz	w0, #31, LBB0_11
	b	LBB0_7
LBB0_6:
	mov	x26, x0
LBB0_7:
Lloh37:
	adrp	x8, _errno@GOTPAGE
Lloh38:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_strerror
	b	LBB0_12
LBB0_8:
	sub	x2, x29, #92
	mov	x0, x19
	mov	x1, x24
	ldur	x3, [x29, #-104]                ; 8-byte Folded Reload
	mov	x4, x20
	bl	_satisfy
	cmp	w0, #0
	b.gt	LBB0_10
	b	LBB0_2
LBB0_9:
	sub	x2, x29, #92
	mov	x0, x19
	mov	x1, x24
	ldur	x3, [x29, #-104]                ; 8-byte Folded Reload
	mov	x4, x20
	bl	_satisfy
	cmp	w0, #0
	b.le	LBB0_4
LBB0_10:
	mov	x26, x0
LBB0_11:
Lloh40:
	adrp	x0, l_.str.5@PAGE
Lloh41:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_12:
	bl	_DPRINTF
	sub	x0, x29, #92
	bl	_free_nsrrset
	str	w21, [x19]
	ldur	x8, [x29, #-88]
Lloh42:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh43:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x26
	sub	sp, x29, #80
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_NS_MAXDNAME,4,2                ; @NS_MAXDNAME
	.comm	_RES_PRF_HEAD2,4,2              ; @RES_PRF_HEAD2
	.comm	_RES_PRF_HEAD1,4,2              ; @RES_PRF_HEAD1
	.comm	_RES_PRF_HEADX,4,2              ; @RES_PRF_HEADX
	.comm	_RES_PRF_QUES,4,2               ; @RES_PRF_QUES
	.comm	_RES_PRF_ANS,4,2                ; @RES_PRF_ANS
	.comm	_RES_PRF_AUTH,4,2               ; @RES_PRF_AUTH
	.comm	_RES_PRF_ADD,4,2                ; @RES_PRF_ADD
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"get the soa, and see if it has enough glue"

	.comm	_RES_EXHAUSTIVE,4,2             ; @RES_EXHAUSTIVE
l_.str.2:                               ; @.str.2
	.asciz	"get the ns rrset and see if it has enough glue"

l_.str.3:                               ; @.str.3
	.asciz	"get the missing glue and see if it's finally enough"

	.comm	_errno,4,2                      ; @errno
l_.str.5:                               ; @.str.5
	.asciz	"OK"

.subsections_via_symbols
