	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_resolvconf              ## -- Begin function ub_ctx_resolvconf
	.p2align	4, 0x90
_ub_ctx_resolvconf:                     ## @ub_ctx_resolvconf
	.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	$1048, %rsp                     ## imm = 0x418
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -1080(%rbp)               ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testq	%rsi, %rsi
	leaq	L_.str(%rip), %rdi
	cmovneq	%rsi, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	leaq	-1072(%rbp), %r15
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rax, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%r13, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_21
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_14 Depth 2
	movb	$0, -49(%rbp)
	leaq	-1061(%rbp), %r12
	movq	%r15, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=2
	incq	%rbx
	incq	%r12
LBB0_6:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$32, %al
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpb	$9, %al
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	$10, %edx
	callq	_strncmp
	testq	%rax, %rax
	jne	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	addq	$10, %rbx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=2
	incq	%rbx
	incq	%r12
LBB0_11:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %eax
	cmpb	$9, %al
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=2
	cmpb	$32, %al
	je	LBB0_13
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=2
	movzbl	(%r12), %eax
	incq	%r12
LBB0_14:                                ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	%al, %edi
	callq	_isxdigit
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=2
	movzbl	-1(%r12), %eax
	cmpb	$58, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=2
	cmpb	$46, %al
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movb	$0, -1(%r12)
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ub_ctx_set_fwd
	movl	%eax, %ebx
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_5 Depth=1
	incl	%r14d
	jmp	LBB0_20
LBB0_3:
	movq	_UB_READFILE@GOTPCREL(%rip), %rax
	jmp	LBB0_24
LBB0_21:
	movq	%r13, %rdi
	callq	_fclose
	testl	%r14d, %r14d
	je	LBB0_22
## %bb.23:
	movq	_UB_NOERROR@GOTPCREL(%rip), %rax
LBB0_24:
	movl	(%rax), %ebx
	jmp	LBB0_25
LBB0_2:
	movq	%r13, %rdi
	callq	_fclose
LBB0_22:
	leaq	L_.str.3(%rip), %rsi
	movq	-1080(%rbp), %rdi               ## 8-byte Reload
	callq	_ub_ctx_set_fwd
	movl	%eax, %ebx
	jmp	LBB0_25
LBB0_27:
	movq	%r13, %rdi
	callq	_fclose
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.26:
	movl	%ebx, %eax
	addq	$1048, %rsp                     ## imm = 0x418
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/etc/resolv.conf"

L_.str.1:                               ## @.str.1
	.asciz	"r"

	.comm	_UB_READFILE,4,2                ## @UB_READFILE
L_.str.2:                               ## @.str.2
	.asciz	"nameserver"

	.comm	_UB_NOERROR,4,2                 ## @UB_NOERROR
L_.str.3:                               ## @.str.3
	.asciz	"127.0.0.1"

	.comm	_ERROR_BUFFER_OVERFLOW,8,3      ## @ERROR_BUFFER_OVERFLOW
	.comm	_NO_ERROR,8,3                   ## @NO_ERROR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ub_ctx_resolvconf              ; -- Begin function ub_ctx_resolvconf
	.p2align	2
_ub_ctx_resolvconf:                     ; @ub_ctx_resolvconf
	.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, #1040
	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, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x1, #0
	csel	x0, x8, x1, eq
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_19
; %bb.1:
	mov	x20, x0
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_22
; %bb.2:
	mov	w23, #0
Lloh7:
	adrp	x21, l_.str.2@PAGE
Lloh8:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh9:
	adrp	x24, _UB_NOERROR@GOTPAGE
Lloh10:
	ldr	x24, [x24, _UB_NOERROR@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	w2, #10
	bl	_strncmp
	cbz	x0, LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_20
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_10 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	add	x22, sp, #8
	strb	wzr, [sp, #1031]
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22]
	cmp	w8, #32
	ccmp	w8, #9, #4, ne
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x22, x22, #1
	b	LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #10
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	add	x22, x22, #1
LBB0_10:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22]
	cmp	w8, #9
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	cmp	w8, #32
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x25, x22
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	ldrb	w8, [x25, #1]!
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	and	w0, w8, #0xff
	bl	_isxdigit
	cbnz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldrb	w8, [x25]
	cmp	w8, #58
	b.eq	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	w8, #46
	b.eq	LBB0_13
; %bb.17:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_ub_ctx_set_fwd
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	add	w23, w23, #1
	b	LBB0_4
LBB0_19:
Lloh11:
	adrp	x8, _UB_READFILE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UB_READFILE@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	b	LBB0_25
LBB0_20:
	mov	x0, x20
	bl	_fclose
	cbz	w23, LBB0_23
; %bb.21:
	ldr	w22, [x24]
	b	LBB0_25
LBB0_22:
	mov	x0, x20
	bl	_fclose
LBB0_23:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ub_ctx_set_fwd
	mov	x22, x0
	b	LBB0_25
LBB0_24:
	mov	x22, x0
	mov	x0, x20
	bl	_fclose
LBB0_25:
	ldur	x8, [x29, #-72]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_27
; %bb.26:
	mov	x0, x22
	add	sp, sp, #1040
	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_27:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/etc/resolv.conf"

l_.str.1:                               ; @.str.1
	.asciz	"r"

	.comm	_UB_READFILE,4,2                ; @UB_READFILE
l_.str.2:                               ; @.str.2
	.asciz	"nameserver"

	.comm	_UB_NOERROR,4,2                 ; @UB_NOERROR
l_.str.3:                               ; @.str.3
	.asciz	"127.0.0.1"

	.comm	_ERROR_BUFFER_OVERFLOW,8,3      ; @ERROR_BUFFER_OVERFLOW
	.comm	_NO_ERROR,8,3                   ; @NO_ERROR
.subsections_via_symbols
