	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_findzonecut                ## -- Begin function res_findzonecut
	.p2align	4, 0x90
_res_findzonecut:                       ## @res_findzonecut
	.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
	movq	%r9, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	movl	24(%rbp), %edi
	movq	_RES_IPV4ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_RES_IPV6ONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
                                        ## kill: def $edi killed $edi killed $rdi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	orl	%r13d, %ebx
	notl	%r15d
	andl	%ebx, %r15d
	movl	%r14d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	movl	24(%rbp), %eax
	pushq	%rax
	pushq	%r12
	callq	_res_findzonecut2
	addq	$16, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_4
## %bb.3:
	movq	16(%rbp), %rdi
	movl	%ebx, %edx
	shlq	$2, %rdx
	movq	%r12, %rsi
	callq	_memcpy
LBB0_4:
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RES_IPV4ONLY,4,2               ## @RES_IPV4ONLY
	.comm	_RES_IPV6ONLY,4,2               ## @RES_IPV6ONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_res_findzonecut                ; -- Begin function res_findzonecut
	.p2align	2
_res_findzonecut:                       ; @res_findzonecut
	.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	x21, x7
	str	x6, [sp, #8]                    ; 8-byte Folded Spill
	mov	x22, x5
	mov	x23, x4
	mov	x27, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
Lloh0:
	adrp	x8, _RES_IPV4ONLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RES_IPV4ONLY@GOTPAGEOFF]
Lloh2:
	ldr	w28, [x8]
Lloh3:
	adrp	x8, _RES_IPV6ONLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RES_IPV6ONLY@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x0, x7
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	orr	w8, w28, w27
	bic	w3, w8, w19
	mov	x0, x26
	mov	x1, x25
	mov	x2, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x20
	mov	x7, x21
	bl	_res_findzonecut2
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.2:
	mov	w8, w21
	lsl	x2, x8, #2
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	bl	_memcpy
LBB0_3:
	mov	x0, x20
	bl	_free
	b	LBB0_5
LBB0_4:
	mov	w21, #-1
LBB0_5:
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RES_IPV4ONLY,4,2               ; @RES_IPV4ONLY
	.comm	_RES_IPV6ONLY,4,2               ; @RES_IPV6ONLY
.subsections_via_symbols
