	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_ioctl                    ## -- Begin function swrap_ioctl
	.p2align	4, 0x90
_swrap_ioctl:                           ## @swrap_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movl	%edi, %ebx
	callq	_find_socket_info
	movq	%rax, %r14
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_real_ioctl
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	cmpl	$128, %r12d
	jne	LBB0_7
## %bb.2:
	movl	(%r15), %ecx
	cmpl	$-1, %eax
	je	LBB0_3
LBB0_5:
	movl	%eax, %ebx
	testl	%ecx, %ecx
	jne	LBB0_7
	jmp	LBB0_6
LBB0_3:
	movq	_errno@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	_EAGAIN@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	je	LBB0_5
## %bb.4:
	movq	_ENOBUFS@GOTPCREL(%rip), %rsi
	movl	$-1, %ebx
	cmpl	(%rsi), %edx
	je	LBB0_5
LBB0_6:
	movq	_SWRAP_PENDING_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_swrap_dump_packet
	movl	%ebx, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
	.comm	_SWRAP_PENDING_RST,4,2          ## @SWRAP_PENDING_RST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_swrap_ioctl                    ; -- Begin function swrap_ioctl
	.p2align	2
_swrap_ioctl:                           ; @swrap_ioctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_find_socket_info
	mov	x20, x0
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_real_ioctl
	mov	x19, x0
	cbz	x20, LBB0_7
; %bb.1:
	cmp	w22, #128
	b.ne	LBB0_7
; %bb.2:
	ldr	w8, [x21]
	cmn	w19, #1
	b.ne	LBB0_4
; %bb.3:
Lloh0:
	adrp	x9, _errno@GOTPAGE
Lloh1:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
Lloh6:
	adrp	x11, _ENOBUFS@GOTPAGE
Lloh7:
	ldr	x11, [x11, _ENOBUFS@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w9, w10
	ccmp	w9, w11, #4, ne
	b.ne	LBB0_5
LBB0_4:
	cbnz	w8, LBB0_7
	b	LBB0_6
LBB0_5:
	mov	w19, #-1
LBB0_6:
Lloh9:
	adrp	x8, _SWRAP_PENDING_RST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SWRAP_PENDING_RST@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, #0
	mov	x3, #0
	mov	w4, #0
	bl	_swrap_dump_packet
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
	.comm	_SWRAP_PENDING_RST,4,2          ; @SWRAP_PENDING_RST
.subsections_via_symbols
