	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_ioctl                      ## -- Begin function net_ioctl
	.p2align	4, 0x90
_net_ioctl:                             ## @net_ioctl
	.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	%rdx, %r14
	movl	%esi, %ebx
	callq	_get_socket
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %ebx
	je	LBB0_7
## %bb.3:
	cmpl	$128, %ebx
	jne	LBB0_12
## %bb.4:
	testq	%r14, %r14
	je	LBB0_13
## %bb.5:
	movq	8(%rax), %rax
	movslq	(%rax), %rsi
	movl	%esi, (%r14)
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_6
LBB0_1:
	movq	_ENOTSOCK@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_7:
	testq	%r14, %r14
	je	LBB0_10
## %bb.8:
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rdx
	movl	(%rax), %ecx
	orl	(%rdx), %ecx
	jmp	LBB0_11
LBB0_12:
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_LWIP_DEBUGF
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_15
LBB0_10:
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rax), %ecx
LBB0_11:
	movl	%ecx, (%rax)
	movq	_SOCKETS_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	andl	(%rax), %ecx
	setne	%sil
LBB0_6:
	callq	_LWIP_DEBUGF
	xorl	%eax, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSOCK,4,2                   ## @ENOTSOCK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SOCKETS_DEBUG,4,2              ## @SOCKETS_DEBUG
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_net_ioctl                      ; -- Begin function net_ioctl
	.p2align	2
_net_ioctl:                             ; @net_ioctl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	mov	x20, x1
	bl	_get_socket
	cbz	x0, LBB0_5
; %bb.1:
	cmp	w20, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_9
; %bb.3:
	cbz	x19, LBB0_10
; %bb.4:
	ldr	x8, [x0, #8]
	ldrsw	x1, [x8]
	str	w1, [x19]
Lloh0:
	adrp	x8, _SOCKETS_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_14
LBB0_5:
Lloh3:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
Lloh5:
	adrp	x8, _O_NONBLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_NONBLOCK@GOTPAGEOFF]
	cbz	x19, LBB0_12
; %bb.7:
	ldr	w9, [x19]
	cbz	w9, LBB0_12
; %bb.8:
	ldr	w9, [x8]
	ldr	w10, [x0]
	orr	w9, w10, w9
	b	LBB0_13
LBB0_9:
Lloh7:
	adrp	x8, _SOCKETS_DEBUG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_LWIP_DEBUGF
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_15
LBB0_12:
	ldr	w9, [x8]
	ldr	w10, [x0]
	bic	w9, w10, w9
LBB0_13:
	str	w9, [x0]
Lloh12:
	adrp	x10, _SOCKETS_DEBUG@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SOCKETS_DEBUG@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x10]
	ldr	w8, [x8]
	tst	w8, w9
	cset	w1, ne
LBB0_14:
	bl	_LWIP_DEBUGF
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSOCK,4,2                   ; @ENOTSOCK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SOCKETS_DEBUG,4,2              ; @SOCKETS_DEBUG
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
.subsections_via_symbols
