	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hesiod_to_bind                 ## -- Begin function hesiod_to_bind
	.p2align	4, 0x90
_hesiod_to_bind:                        ## @hesiod_to_bind
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXDNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r13, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%r13d, %edx
	callq	_strlcpy
	cltq
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	cmpq	%r13, %rax
	jae	LBB0_26
## %bb.1:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	movl	$64, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r12
	incq	%r12
	movb	$0, (%rax)
	movq	%r12, %rdi
	movl	$46, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	subq	%r14, %r12
	addq	%r12, %r15
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_4:
	movq	%rbx, %r12
	movq	(%rbx), %r15
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
LBB0_5:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hesiod_resolve
	testq	%rax, %rax
	je	LBB0_25
## %bb.6:
	movq	%rax, %rcx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r15
LBB0_7:
	movq	%rbx, %r12
LBB0_8:
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	incl	%ebx
	movq	8(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.9:
	callq	_strlen
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	cmpb	$46, (%rcx)
	setne	%dl
	addl	%ebx, %eax
	addl	%edx, %eax
	movl	%eax, %ebx
LBB0_10:
	movq	%r15, %rdi
	callq	_strlen
	xorl	%ecx, %ecx
	cmpb	$46, (%r15)
	setne	%cl
	addl	%ebx, %eax
	addl	%ecx, %eax
	cltq
	leaq	-1(%r13), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_13
## %bb.11:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_24
## %bb.12:
	movq	%r12, %rdi
	callq	_hesiod_free_list
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_13:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_strcat
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_18
## %bb.14:
	movb	(%rsi), %al
	testb	%al, %al
	je	LBB0_18
## %bb.15:
	cmpb	$46, %al
	je	LBB0_17
## %bb.16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
	movq	8(%r12), %rsi
LBB0_17:
	movq	%r14, %rdi
	callq	_strcat
LBB0_18:
	cmpb	$46, (%r15)
	je	LBB0_20
## %bb.19:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcat
LBB0_20:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_strcat
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_22
## %bb.21:
	movq	%r12, %rdi
	callq	_hesiod_free_list
LBB0_22:
	movq	%r14, %rdi
	callq	_strdup
	testq	%rax, %rax
	jne	LBB0_27
## %bb.23:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_24:
	movq	_EMSGSIZE@GOTPCREL(%rip), %rcx
	jmp	LBB0_26
LBB0_25:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_26:
	movl	(%rcx), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_29
## %bb.28:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXDNAME,4,2                   ## @MAXDNAME
	.comm	_EMSGSIZE,4,2                   ## @EMSGSIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rhs-extension"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.1:                               ## @.str.1
	.asciz	"."

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hesiod_to_bind                 ; -- Begin function hesiod_to_bind
	.p2align	2
_hesiod_to_bind:                        ; @hesiod_to_bind
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x21, x2
	mov	x24, 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, #-72]
Lloh3:
	adrp	x8, _MAXDNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXDNAME@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	mov	x9, x23
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x23, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	mov	x0, x20
	mov	x2, x23
	bl	_strlcpy
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	cmp	x8, x23
	b.hs	LBB0_12
; %bb.1:
	mov	x0, x20
	mov	w1, #64
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.2:
	mov	x25, x0
	strb	wzr, [x25], #1
	mov	x0, x25
	mov	w1, #46
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.3:
	mov	x22, #0
	sub	x8, x25, x20
	add	x24, x24, x8
	b	LBB0_7
LBB0_4:
	mov	x22, #0
	ldr	x24, [x19]
	b	LBB0_7
LBB0_5:
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x25
	bl	_hesiod_resolve
	cbz	x0, LBB0_27
; %bb.6:
	mov	x22, x0
	ldr	x24, [x0]
LBB0_7:
	mov	x0, x20
	bl	_strlen
	mov	x25, x0
	mov	x0, x21
	bl	_strlen
	add	w8, w25, w0
	add	w25, w8, #1
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_strlen
	ldr	x8, [x19, #8]
	ldrb	w8, [x8]
	cmp	w8, #46
	add	w8, w0, w25
	cinc	w25, w8, ne
LBB0_9:
	mov	x0, x24
	bl	_strlen
	ldrb	w8, [x24]
	cmp	w8, #46
	add	w8, w0, w25
	cinc	w8, w8, ne
	sub	x9, x23, #1
	cmp	x9, w8, sxtw
	b.hs	LBB0_16
; %bb.10:
	cbz	x22, LBB0_12
; %bb.11:
	mov	x0, x19
	mov	x1, x22
	bl	_hesiod_free_list
LBB0_12:
Lloh10:
	adrp	x8, _EMSGSIZE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EMSGSIZE@GOTPAGEOFF]
LBB0_13:
	mov	x0, #0
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _errno@GOTPAGE
Lloh13:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.15:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcat
	mov	x0, x20
	mov	x1, x21
	bl	_strcat
	ldr	x1, [x19, #8]
	cbz	x1, LBB0_21
; %bb.17:
	ldrb	w8, [x1]
	cbz	w8, LBB0_21
; %bb.18:
	cmp	w8, #46
	b.eq	LBB0_20
; %bb.19:
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcat
	ldr	x1, [x19, #8]
LBB0_20:
	mov	x0, x20
	bl	_strcat
LBB0_21:
	ldrb	w8, [x24]
	cmp	w8, #46
	b.eq	LBB0_23
; %bb.22:
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_strcat
LBB0_23:
	mov	x0, x20
	mov	x1, x24
	bl	_strcat
	cbz	x22, LBB0_25
; %bb.24:
	mov	x0, x19
	mov	x1, x22
	bl	_hesiod_free_list
LBB0_25:
	mov	x0, x20
	bl	_strdup
	cbnz	x0, LBB0_14
; %bb.26:
Lloh24:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_27:
Lloh26:
	adrp	x8, _ENOENT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_13
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXDNAME,4,2                   ; @MAXDNAME
	.comm	_EMSGSIZE,4,2                   ; @EMSGSIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rhs-extension"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.1:                               ; @.str.1
	.asciz	"."

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
