	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function io_wait
_io_wait:                               ## @io_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_7
## %bb.1:
	movq	_IOW_TO_TUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_IOW_TO_LINK@GOTPCREL(%rip), %rdx
	movq	_IOW_MBUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	%ecx, %edx
	orl	%eax, %edx
	testl	%esi, %edx
	je	LBB0_7
## %bb.2:
	andl	%esi, %eax
	je	LBB0_4
## %bb.3:
	movq	_TUN_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	andl	%esi, %ecx
	je	LBB0_6
## %bb.5:
	movq	_SOCKET_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_6:
	orl	%eax, %ecx
	movl	%ecx, (%rdi)
	popq	%rbp
	retq
LBB0_7:
	popq	%rbp
	jmp	_io_wait_dowork                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IOW_TO_TUN,4,2                 ## @IOW_TO_TUN
	.comm	_IOW_TO_LINK,4,2                ## @IOW_TO_LINK
	.comm	_IOW_MBUF,4,2                   ## @IOW_MBUF
	.comm	_TUN_WRITE,4,2                  ## @TUN_WRITE
	.comm	_SOCKET_WRITE,4,2               ## @SOCKET_WRITE
	.no_dead_strip	_io_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function io_wait
_io_wait:                               ; @io_wait
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _IOW_TO_TUN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IOW_TO_TUN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _IOW_TO_LINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOW_TO_LINK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _IOW_MBUF@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IOW_MBUF@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	orr	w10, w9, w8
	tst	w10, w1
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x10, _TUN_WRITE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TUN_WRITE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w8, w1
Lloh12:
	adrp	x8, _SOCKET_WRITE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCKET_WRITE@GOTPAGEOFF]
	csel	w10, wzr, w10, eq
Lloh14:
	ldr	w8, [x8]
	tst	w9, w1
	csel	w8, wzr, w8, eq
	orr	w8, w8, w10
	str	w8, [x0]
	ret
LBB0_3:
	b	_io_wait_dowork
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IOW_TO_TUN,4,2                 ; @IOW_TO_TUN
	.comm	_IOW_TO_LINK,4,2                ; @IOW_TO_LINK
	.comm	_IOW_MBUF,4,2                   ; @IOW_MBUF
	.comm	_TUN_WRITE,4,2                  ; @TUN_WRITE
	.comm	_SOCKET_WRITE,4,2               ; @SOCKET_WRITE
	.no_dead_strip	_io_wait
.subsections_via_symbols
