	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dag_setnonblock
_dag_setnonblock:                       ## @dag_setnonblock
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	8(%rdi), %r12
	callq	_pcap_setnonblock_fd
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_9
## %bb.1:
	movl	4(%rbx), %edi
	movl	4(%r12), %esi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_dag_get_stream_poll64
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	testl	%r15d, %r15d
	sete	%dl
	shll	$16, %edx
	movl	%edx, -52(%rbp)
	movl	4(%rbx), %edi
	movl	4(%r12), %esi
	leaq	-48(%rbp), %rcx
	leaq	-40(%rbp), %r8
	callq	_dag_set_stream_poll64
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movq	_DAGF_NONBLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.6:
	orl	%eax, (%r12)
	jmp	LBB0_8
LBB0_2:
	movl	(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_9
LBB0_4:
	movl	(%rbx), %edi
	movq	_PCAP_ERRBUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	callq	_pcap_fmt_errmsg_for_errno
	jmp	LBB0_9
LBB0_7:
	notl	%eax
	andl	%eax, (%r12)
LBB0_8:
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ## @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dag_get_stream_poll"

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

	.comm	_DAGF_NONBLOCK,4,2              ## @DAGF_NONBLOCK
	.no_dead_strip	_dag_setnonblock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dag_setnonblock
_dag_setnonblock:                       ; @dag_setnonblock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
	bl	_pcap_setnonblock_fd
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	w0, [x20, #4]
	ldr	w1, [x21, #4]
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x4, sp
	bl	_dag_get_stream_poll64
	tbnz	x0, #63, LBB0_6
; %bb.2:
	cmp	w19, #0
	cset	w8, eq
	lsl	w2, w8, #16
	str	w2, [sp, #12]
	ldr	w0, [x20, #4]
	ldr	w1, [x21, #4]
	add	x3, sp, #8
	mov	x4, sp
	bl	_dag_set_stream_poll64
	tbnz	x0, #63, LBB0_7
; %bb.3:
Lloh0:
	adrp	x8, _DAGF_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DAGF_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w0, #0
	cbz	w19, LBB0_9
; %bb.4:
	ldr	w9, [x21]
	orr	w8, w9, w8
	b	LBB0_10
LBB0_5:
	mov	w0, #-1
	b	LBB0_11
LBB0_6:
	ldr	w0, [x20]
Lloh3:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _PCAP_ERRBUF_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PCAP_ERRBUF_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x3, l_.str.1@PAGE
Lloh18:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_8:
	bl	_pcap_fmt_errmsg_for_errno
	mov	w0, #-1
	b	LBB0_11
LBB0_9:
	ldr	w9, [x21]
	bic	w8, w9, w8
LBB0_10:
	str	w8, [x21]
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_PCAP_ERRBUF_SIZE,4,2           ; @PCAP_ERRBUF_SIZE
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dag_get_stream_poll"

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

	.comm	_DAGF_NONBLOCK,4,2              ; @DAGF_NONBLOCK
	.no_dead_strip	_dag_setnonblock
.subsections_via_symbols
