	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function open_with_IOP
_open_with_IOP:                         ## @open_with_IOP
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	24(%rdi), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	movl	$4, %edi
	callq	_malloc
	movq	%rax, %rdi
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	movq	(%rbx), %r15
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_AF_INET@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movq	24(%rbx), %rcx
	movl	%eax, 8(%rcx)
	movq	%r15, %rdi
	callq	_inet_addr
	movq	24(%rbx), %rcx
	movl	%eax, 4(%rcx)
	movq	_IOP_SNIFFER_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movq	24(%rbx), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %edi
	movq	_SOCK_STREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_socket
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movl	%eax, %r12d
	movq	24(%rbx), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_connect
	testq	%rax, %rax
	js	LBB0_6
## %bb.7:
	movq	_LIVE@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_9
## %bb.8:
	movl	%r12d, 8(%rbx)
	jmp	LBB0_10
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%r12d, %r12d
	jmp	LBB0_11
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_11
LBB0_9:
	movl	%r12d, 12(%rbx)
LBB0_10:
	movq	$0, 16(%rbx)
	jmp	LBB0_11
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_11:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc() request for u->serv_addr failed, value of errno is: %d\n"

	.comm	_errno,4,2                      ## @errno
	.comm	_AF_INET,4,2                    ## @AF_INET
	.comm	_IOP_SNIFFER_PORT,4,2           ## @IOP_SNIFFER_PORT
	.comm	_SOCK_STREAM,4,2                ## @SOCK_STREAM
L_.str.1:                               ## @.str.1
	.asciz	"pcap can't open a socket for connecting to IOP at %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"pcap can't connect to IOP at %s\n"

	.comm	_LIVE,4,2                       ## @LIVE
	.no_dead_strip	_open_with_IOP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function open_with_IOP
_open_with_IOP:                         ; @open_with_IOP
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0, #24]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	w0, #4
	bl	_malloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_10
LBB0_2:
	ldr	x21, [x19]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x22, _AF_INET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AF_INET@GOTPAGEOFF]
	ldr	w8, [x22]
	ldr	x9, [x19, #24]
	str	w8, [x9, #8]
	mov	x0, x21
	bl	_inet_addr
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
Lloh2:
	adrp	x8, _IOP_SNIFFER_PORT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IOP_SNIFFER_PORT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_htons
	ldr	x8, [x19, #24]
	str	w0, [x8]
	ldr	w0, [x22]
Lloh5:
	adrp	x8, _SOCK_STREAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SOCK_STREAM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_socket
	tbnz	w0, #31, LBB0_6
; %bb.3:
	mov	x22, x0
	ldr	x1, [x19, #24]
	mov	w2, #4
	bl	_connect
	tbnz	x0, #63, LBB0_7
; %bb.4:
Lloh8:
	adrp	x8, _LIVE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LIVE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_8
; %bb.5:
	str	w22, [x19, #8]
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh16:
	adrp	x8, _stderr@GOTPAGE
Lloh17:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_8:
	str	w22, [x19, #12]
LBB0_9:
	str	xzr, [x19, #16]
	b	LBB0_12
LBB0_10:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _errno@GOTPAGE
Lloh25:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str@PAGE
Lloh28:
	add	x1, x1, l_.str@PAGEOFF
LBB0_11:
	bl	_fprintf
	mov	w22, #0
LBB0_12:
	mov	x0, x22
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc() request for u->serv_addr failed, value of errno is: %d\n"

	.comm	_errno,4,2                      ; @errno
	.comm	_AF_INET,4,2                    ; @AF_INET
	.comm	_IOP_SNIFFER_PORT,4,2           ; @IOP_SNIFFER_PORT
	.comm	_SOCK_STREAM,4,2                ; @SOCK_STREAM
l_.str.1:                               ; @.str.1
	.asciz	"pcap can't open a socket for connecting to IOP at %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"pcap can't connect to IOP at %s\n"

	.comm	_LIVE,4,2                       ; @LIVE
	.no_dead_strip	_open_with_IOP
.subsections_via_symbols
