	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_dns_msg                    ## -- Begin function log_dns_msg
	.p2align	4, 0x90
_log_dns_msg:                           ## @log_dns_msg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_sldns_buffer_new
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_regional_create
	movq	%rax, %r14
	movl	(%rbx), %ecx
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	movq	%r12, %r8
	xorl	%r9d, %r9d
	pushq	$1
	pushq	$65535                          ## imm = 0xFFFF
	pushq	%rax
	callq	_reply_info_encode
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_sldns_buffer_begin
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_sldns_buffer_limit
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_sldns_wire2str_pkt
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log_info
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_log_info
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_log_info
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
LBB0_6:
	movq	%r12, %rdi
	callq	_sldns_buffer_free
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regional_destroy               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: log_dns_msg: out of memory"

L_.str.1:                               ## @.str.1
	.asciz	"%s: log_dns_msg: ldns tostr failed"

L_.str.2:                               ## @.str.2
	.asciz	"%s %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_log_dns_msg                    ; -- Begin function log_dns_msg
	.p2align	2
_log_dns_msg:                           ; @log_dns_msg
	.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	x22, x2
	mov	x23, x1
	mov	x21, x0
	mov	w0, #65535
	bl	_sldns_buffer_new
	mov	x19, x0
	bl	_regional_create
	mov	x20, x0
	ldr	w3, [x22]
	mov	w8, #1
	str	w8, [sp]
	mov	x0, x23
	mov	x1, x22
	mov	w2, #0
	mov	x4, x19
	mov	w5, #0
	mov	x6, x20
	mov	w7, #65535
	bl	_reply_info_encode
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_sldns_buffer_begin
	mov	x22, x0
	mov	x0, x19
	bl	_sldns_buffer_limit
	mov	x1, x0
	mov	x0, x22
	bl	_sldns_wire2str_pkt
	mov	x22, x0
	cbz	x0, LBB0_4
; %bb.2:
	str	x22, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_log_info
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x21
	bl	_log_info
	mov	x0, x22
	bl	_free
LBB0_6:
	mov	x0, x19
	bl	_sldns_buffer_free
	mov	x0, x20
	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
	b	_regional_destroy
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: log_dns_msg: out of memory"

l_.str.1:                               ; @.str.1
	.asciz	"%s: log_dns_msg: ldns tostr failed"

l_.str.2:                               ; @.str.2
	.asciz	"%s %s"

.subsections_via_symbols
