	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evdns_request_transmit
_evdns_request_transmit:                ## @evdns_request_transmit
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rdi
	callq	_ASSERT_LOCKED
	movq	%rbx, %rdi
	callq	_ASSERT_VALID_REQUEST
	movl	$1, (%rbx)
	xorl	%edi, %edi
	cmpl	$65535, 4(%rbx)                 ## imm = 0xFFFF
	setne	%dil
	callq	_EVUTIL_ASSERT
	movq	32(%rbx), %rsi
	movl	$1, %r14d
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	cmpl	$0, (%rsi)
	jne	LBB0_9
## %bb.2:
	movq	%rbx, %rdi
	callq	_evdns_request_transmit_to
	cmpl	$2, %eax
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$1, %eax
	jne	LBB0_6
## %bb.4:
	movq	32(%rbx), %rdi
	movl	$1, (%rdi)
	movl	$1, %r14d
	movl	$1, %esi
	callq	_nameserver_write_waiting
	jmp	LBB0_9
LBB0_5:
	movl	$1, %r14d
LBB0_6:
	movq	_EVDNS_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	32(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log
	leaq	24(%rbx), %rdi
	movq	16(%rbx), %rsi
	callq	_evtimer_add
	testl	%eax, %eax
	jns	LBB0_8
## %bb.7:
	movq	_EVDNS_LOG_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_log
LBB0_8:
	incl	8(%rbx)
	movl	$0, (%rbx)
LBB0_9:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EVDNS_LOG_DEBUG,4,2            ## @EVDNS_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting timeout for request %p, sent to nameserver %p"

	.comm	_EVDNS_LOG_WARN,4,2             ## @EVDNS_LOG_WARN
L_.str.1:                               ## @.str.1
	.asciz	"Error from libevent when adding timer for request %p"

	.no_dead_strip	_evdns_request_transmit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evdns_request_transmit
_evdns_request_transmit:                ; @evdns_request_transmit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0, #16]
	bl	_ASSERT_LOCKED
	mov	x0, x19
	bl	_ASSERT_VALID_REQUEST
	mov	w20, #1
	str	w20, [x19]
	ldr	w8, [x19, #4]
	mov	w9, #65535
	cmp	w8, w9
	cset	w0, ne
	bl	_EVUTIL_ASSERT
	ldr	x1, [x19, #32]
	cbz	x1, LBB0_11
; %bb.1:
	ldr	w8, [x1]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w20, #1
	b	LBB0_11
LBB0_3:
	mov	x0, x19
	bl	_evdns_request_transmit_to
	cmp	w0, #2
	b.eq	LBB0_6
; %bb.4:
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.5:
	ldr	x0, [x19, #32]
	mov	w20, #1
	str	w20, [x0]
	mov	w1, #1
	bl	_nameserver_write_waiting
	b	LBB0_11
LBB0_6:
	mov	w20, #1
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
Lloh0:
	adrp	x8, _EVDNS_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EVDNS_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #32]
	str	x8, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_log
	add	x0, x19, #24
	ldr	x1, [x19, #16]
	bl	_evtimer_add
	tbz	w0, #31, LBB0_10
; %bb.9:
Lloh5:
	adrp	x8, _EVDNS_LOG_WARN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EVDNS_LOG_WARN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_log
LBB0_10:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	str	wzr, [x19]
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EVDNS_LOG_DEBUG,4,2            ; @EVDNS_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting timeout for request %p, sent to nameserver %p"

	.comm	_EVDNS_LOG_WARN,4,2             ; @EVDNS_LOG_WARN
l_.str.1:                               ; @.str.1
	.asciz	"Error from libevent when adding timer for request %p"

	.no_dead_strip	_evdns_request_transmit
.subsections_via_symbols
