	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_update_soa_mname          ## -- Begin function ldns_update_soa_mname
	.p2align	4, 0x90
_ldns_update_soa_mname:                 ## @ldns_update_soa_mname
	.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	%rcx, %r14
	movl	%edx, %ebx
	movq	%rsi, %r15
	callq	_ldns_rdf_clone
	movq	_LDNS_RR_TYPE_SOA@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	movq	_LDNS_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_ldns_pkt_query_new
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_ldns_pkt_set_random_id
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_ldns_resolver_send_pkt
	movq	%rax, %r15
	movq	_LDNS_STATUS_OK@GOTPCREL(%rip), %r13
	movq	(%r13), %r14
	movq	%rbx, %rdi
	callq	_ldns_pkt_free
	cmpq	%r14, %r15
	jne	LBB0_1
## %bb.3:
	movq	-48(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	$0, (%r14)
	callq	_ldns_pkt_answer
	movl	%eax, %edi
	callq	_ldns_rr_list_pop_rr
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:
	movq	%rax, %rbx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_answer
	movl	%eax, %edi
	callq	_ldns_rr_list_pop_rr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ldns_rr_get_type
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ldns_rr_rdf
	movq	%rax, %rdi
	callq	_ldns_rdf_clone
	movq	%rax, (%r14)
LBB0_10:
	movq	-48(%rbp), %rdi
	callq	_ldns_pkt_free
	cmpq	$0, (%r14)
	jne	LBB0_12
## %bb.11:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %r13
LBB0_12:
	movq	(%r13), %rax
	jmp	LBB0_13
LBB0_1:
	movq	_LDNS_STATUS_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LDNS_RR_TYPE_SOA,8,3           ## @LDNS_RR_TYPE_SOA
	.comm	_LDNS_RD,4,2                    ## @LDNS_RD
	.comm	_LDNS_STATUS_ERR,8,3            ## @LDNS_STATUS_ERR
	.comm	_LDNS_STATUS_OK,8,3             ## @LDNS_STATUS_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ldns_update_soa_mname          ; -- Begin function ldns_update_soa_mname
	.p2align	2
_ldns_update_soa_mname:                 ; @ldns_update_soa_mname
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	bl	_ldns_rdf_clone
Lloh0:
	adrp	x22, _LDNS_RR_TYPE_SOA@GOTPAGE
Lloh1:
	ldr	x22, [x22, _LDNS_RR_TYPE_SOA@GOTPAGEOFF]
	ldr	x1, [x22]
Lloh2:
	adrp	x8, _LDNS_RD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LDNS_RD@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_ldns_pkt_query_new
	cbz	x0, LBB0_10
; %bb.1:
	mov	x21, x0
	bl	_ldns_pkt_set_random_id
	add	x0, sp, #8
	mov	x1, x20
	mov	x2, x21
	bl	_ldns_resolver_send_pkt
	mov	x20, x0
Lloh5:
	adrp	x23, _LDNS_STATUS_OK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _LDNS_STATUS_OK@GOTPAGEOFF]
	ldr	x24, [x23]
	mov	x0, x21
	bl	_ldns_pkt_free
	cmp	x20, x24
	b.ne	LBB0_10
; %bb.2:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.3:
	str	xzr, [x19]
	bl	_ldns_pkt_answer
	bl	_ldns_rr_list_pop_rr
	cbz	x0, LBB0_9
; %bb.4:
	mov	x20, x0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_answer
	bl	_ldns_rr_list_pop_rr
	mov	x20, x0
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_ldns_rr_get_type
	ldr	x8, [x22]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_ldns_rr_rdf
	cbz	x0, LBB0_5
; %bb.8:
	mov	x0, x20
	mov	w1, #0
	bl	_ldns_rr_rdf
	bl	_ldns_rdf_clone
	str	x0, [x19]
LBB0_9:
	ldr	x0, [sp, #8]
	bl	_ldns_pkt_free
	ldr	x8, [x19]
Lloh7:
	adrp	x9, _LDNS_STATUS_ERR@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LDNS_STATUS_ERR@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x9, x23, eq
	b	LBB0_11
LBB0_10:
Lloh9:
	adrp	x8, _LDNS_STATUS_ERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LDNS_STATUS_ERR@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_LDNS_RR_TYPE_SOA,8,3           ; @LDNS_RR_TYPE_SOA
	.comm	_LDNS_RD,4,2                    ; @LDNS_RD
	.comm	_LDNS_STATUS_ERR,8,3            ; @LDNS_STATUS_ERR
	.comm	_LDNS_STATUS_OK,8,3             ; @LDNS_STATUS_OK
.subsections_via_symbols
