	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function port_register
_port_register:                         ## @port_register
	.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	%rbx
	subq	$120, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movslq	(%rdi), %rsi
	movl	4(%rdi), %edx
	movq	8(%rdi), %rcx
	movl	96(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	96(%rbx), %esi
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	callq	_nmreq_hdr_init
	movq	_NETMAP_REQ_REGISTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -128(%rbp)
	leaq	-120(%rbp), %rdi
	movq	%rdi, -144(%rbp)
	movq	88(%rbx), %rax
	movq	%rax, -136(%rbp)
	xorl	%esi, %esi
	movl	$96, %edx
	callq	_memset
	movq	16(%rbx), %rax
	movq	%rax, -120(%rbp)
	movl	(%rbx), %eax
	movl	%eax, -112(%rbp)
	movl	4(%rbx), %eax
	movl	%eax, -108(%rbp)
	movq	8(%rbx), %rax
	movq	%rax, -104(%rbp)
	movups	24(%rbx), %xmm0
	movups	%xmm0, -96(%rbp)
	movups	40(%rbx), %xmm0
	movups	%xmm0, -80(%rbp)
	movups	56(%rbx), %xmm0
	movups	%xmm0, -64(%rbp)
	movq	72(%rbx), %rax
	movq	%rax, -48(%rbp)
	movl	80(%rbx), %edi
	movq	_NIOCCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	movq	-32(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-40(%rbp), %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-96(%rbp), %rsi
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-88(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-80(%rbp), %rsi
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-56(%rbp), %rsi
	leaq	L_.str.7(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-72(%rbp), %rsi
	leaq	L_.str.8(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rsi
	leaq	L_.str.9(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-120(%rbp), %rsi
	leaq	L_.str.10(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	-48(%rbp), %rsi
	leaq	L_.str.11(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movl	$-1, %r14d
	cmpq	$0, -40(%rbp)
	je	LBB0_22
## %bb.3:
	movl	(%rbx), %eax
	cmpl	-112(%rbp), %eax
	jne	LBB0_22
## %bb.4:
	movl	4(%rbx), %eax
	cmpl	-108(%rbp), %eax
	jne	LBB0_22
## %bb.5:
	movq	8(%rbx), %rax
	cmpq	-104(%rbp), %rax
	jne	LBB0_22
## %bb.6:
	movq	24(%rbx), %rcx
	testq	%rcx, %rcx
	sete	%dl
	movq	-96(%rbp), %rdi
	testq	%rdi, %rdi
	setne	%al
	testb	%al, %dl
	jne	LBB0_8
## %bb.7:
	cmpq	%rdi, %rcx
	jne	LBB0_22
LBB0_8:
	movq	32(%rbx), %rdx
	testq	%rdx, %rdx
	sete	%al
	movq	-88(%rbp), %r11
	testq	%r11, %r11
	setne	%cl
	testb	%cl, %al
	jne	LBB0_10
## %bb.9:
	cmpq	%r11, %rdx
	jne	LBB0_22
LBB0_10:
	movq	40(%rbx), %rsi
	testq	%rsi, %rsi
	sete	%al
	movq	-80(%rbp), %r15
	testq	%r15, %r15
	setne	%cl
	testb	%cl, %al
	jne	LBB0_12
## %bb.11:
	cmpq	%r15, %rsi
	jne	LBB0_22
LBB0_12:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_14
## %bb.13:
	cmpq	%rsi, %rax
	jne	LBB0_22
LBB0_14:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	movq	-72(%rbp), %r10
	testq	%r10, %r10
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_16
## %bb.15:
	cmpq	%r10, %rax
	jne	LBB0_22
LBB0_16:
	movq	56(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	movq	-64(%rbp), %r8
	testq	%r8, %r8
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_18
## %bb.17:
	cmpq	%r8, %rax
	jne	LBB0_22
LBB0_18:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	movq	-120(%rbp), %r9
	testq	%r9, %r9
	setne	%dl
	testb	%dl, %cl
	jne	LBB0_20
## %bb.19:
	cmpq	%r9, %rax
	jne	LBB0_22
LBB0_20:
	movq	72(%rbx), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movq	%rdi, 24(%rbx)
	movq	%r11, 32(%rbx)
	movq	%r15, 40(%rbx)
	movq	%rsi, 64(%rbx)
	movq	%r10, 48(%rbx)
	movq	%r8, 56(%rbx)
	movq	%r9, 16(%rbx)
	xorl	%r14d, %r14d
	jmp	LBB0_22
LBB0_1:
	movl	%eax, %r14d
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
LBB0_22:
	movl	%r14d, %eax
	addq	$120, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing NETMAP_REQ_REGISTER(mode=%d,ringid=%d,flags=0x%llx) on '%s'\n"

	.comm	_NETMAP_REQ_REGISTER,4,2        ## @NETMAP_REQ_REGISTER
	.comm	_NIOCCTRL,4,2                   ## @NIOCCTRL
L_.str.1:                               ## @.str.1
	.asciz	"ioctl(/dev/netmap, NIOCCTRL, REGISTER)"

L_.str.2:                               ## @.str.2
	.asciz	"nr_offset 0x%llx\n"

L_.str.3:                               ## @.str.3
	.asciz	"nr_memsize %llu\n"

L_.str.4:                               ## @.str.4
	.asciz	"nr_tx_slots %u\n"

L_.str.5:                               ## @.str.5
	.asciz	"nr_rx_slots %u\n"

L_.str.6:                               ## @.str.6
	.asciz	"nr_tx_rings %u\n"

L_.str.7:                               ## @.str.7
	.asciz	"nr_rx_rings %u\n"

L_.str.8:                               ## @.str.8
	.asciz	"nr_host_tx_rings %u\n"

L_.str.9:                               ## @.str.9
	.asciz	"nr_host_rx_rings %u\n"

L_.str.10:                              ## @.str.10
	.asciz	"nr_mem_id %u\n"

L_.str.11:                              ## @.str.11
	.asciz	"nr_extra_bufs %u\n"

	.no_dead_strip	_port_register
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function port_register
_port_register:                         ; @port_register
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldp	w1, w9, [x0]
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x1, w1
	ldr	w10, [x0, #96]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w1, [x19, #96]
	add	x0, sp, #24
	bl	_nmreq_hdr_init
Lloh2:
	adrp	x8, _NETMAP_REQ_REGISTER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NETMAP_REQ_REGISTER@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	add	x8, sp, #48
	ldr	x9, [x19, #88]
	stp	x8, x9, [sp, #24]
	add	x0, sp, #48
	mov	w1, #0
	mov	w2, #96
	bl	_memset
	ldp	x9, x8, [x19, #8]
	str	x8, [sp, #48]
	ldr	d0, [x19]
	str	d0, [sp, #56]
	str	x9, [sp, #64]
	ldur	q0, [x19, #24]
	stur	q0, [sp, #72]
	ldur	q0, [x19, #40]
	stur	q0, [sp, #88]
	ldur	q0, [x19, #56]
	stur	q0, [sp, #104]
	ldr	x8, [x19, #72]
	str	x8, [sp, #120]
	ldr	w0, [x19, #80]
Lloh5:
	adrp	x8, _NIOCCTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIOCCTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #24
	bl	_ioctl
	cbnz	w0, LBB0_23
; %bb.1:
	ldr	x1, [sp, #136]
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #128]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #72]
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #80]
Lloh14:
	adrp	x0, l_.str.5@PAGE
Lloh15:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #88]
Lloh16:
	adrp	x0, l_.str.6@PAGE
Lloh17:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #112]
Lloh18:
	adrp	x0, l_.str.7@PAGE
Lloh19:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #96]
Lloh20:
	adrp	x0, l_.str.8@PAGE
Lloh21:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #104]
Lloh22:
	adrp	x0, l_.str.9@PAGE
Lloh23:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #48]
Lloh24:
	adrp	x0, l_.str.10@PAGE
Lloh25:
	add	x0, x0, l_.str.10@PAGEOFF
	bl	_printf
	ldr	x1, [sp, #120]
Lloh26:
	adrp	x0, l_.str.11@PAGE
Lloh27:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_printf
	ldr	x8, [sp, #128]
	cbz	x8, LBB0_21
; %bb.2:
	ldr	w8, [x19]
	ldr	w9, [sp, #56]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.3:
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #60]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x9, [sp, #64]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.5:
	ldr	x9, [x19, #24]
	ldr	x8, [sp, #72]
	cmp	x8, #0
	ccmp	x9, #0, #0, ne
	b.eq	LBB0_7
; %bb.6:
	cmp	x9, x8
	b.ne	LBB0_21
LBB0_7:
	ldr	x10, [x19, #32]
	ldr	x9, [sp, #80]
	cmp	x9, #0
	ccmp	x10, #0, #0, ne
	b.eq	LBB0_9
; %bb.8:
	cmp	x10, x9
	b.ne	LBB0_21
LBB0_9:
	ldr	x11, [x19, #40]
	ldr	x10, [sp, #88]
	cmp	x10, #0
	ccmp	x11, #0, #0, ne
	b.eq	LBB0_11
; %bb.10:
	cmp	x11, x10
	b.ne	LBB0_21
LBB0_11:
	ldr	x12, [x19, #64]
	ldr	x11, [sp, #112]
	cmp	x11, #0
	ccmp	x12, #0, #0, ne
	b.eq	LBB0_13
; %bb.12:
	cmp	x12, x11
	b.ne	LBB0_21
LBB0_13:
	ldr	x13, [x19, #48]
	ldr	x12, [sp, #96]
	cmp	x12, #0
	ccmp	x13, #0, #0, ne
	b.eq	LBB0_15
; %bb.14:
	cmp	x13, x12
	b.ne	LBB0_21
LBB0_15:
	ldr	x14, [x19, #56]
	ldr	x13, [sp, #104]
	cmp	x13, #0
	ccmp	x14, #0, #0, ne
	b.eq	LBB0_17
; %bb.16:
	cmp	x14, x13
	b.ne	LBB0_21
LBB0_17:
	ldr	x15, [x19, #16]
	ldr	x14, [sp, #48]
	cmp	x14, #0
	ccmp	x15, #0, #0, ne
	b.eq	LBB0_19
; %bb.18:
	cmp	x15, x14
	b.ne	LBB0_21
LBB0_19:
	ldr	x15, [x19, #72]
	ldr	x16, [sp, #120]
	cmp	x15, x16
	b.ne	LBB0_21
; %bb.20:
	mov	w20, #0
	stp	x9, x10, [x19, #32]
	stp	x13, x11, [x19, #56]
	str	x12, [x19, #48]
	stp	x14, x8, [x19, #16]
	b	LBB0_22
LBB0_21:
	mov	w20, #-1
LBB0_22:
	mov	x0, x20
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_23:
	mov	x20, x0
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing NETMAP_REQ_REGISTER(mode=%d,ringid=%d,flags=0x%llx) on '%s'\n"

	.comm	_NETMAP_REQ_REGISTER,4,2        ; @NETMAP_REQ_REGISTER
	.comm	_NIOCCTRL,4,2                   ; @NIOCCTRL
l_.str.1:                               ; @.str.1
	.asciz	"ioctl(/dev/netmap, NIOCCTRL, REGISTER)"

l_.str.2:                               ; @.str.2
	.asciz	"nr_offset 0x%llx\n"

l_.str.3:                               ; @.str.3
	.asciz	"nr_memsize %llu\n"

l_.str.4:                               ; @.str.4
	.asciz	"nr_tx_slots %u\n"

l_.str.5:                               ; @.str.5
	.asciz	"nr_rx_slots %u\n"

l_.str.6:                               ; @.str.6
	.asciz	"nr_tx_rings %u\n"

l_.str.7:                               ; @.str.7
	.asciz	"nr_rx_rings %u\n"

l_.str.8:                               ; @.str.8
	.asciz	"nr_host_tx_rings %u\n"

l_.str.9:                               ; @.str.9
	.asciz	"nr_host_rx_rings %u\n"

l_.str.10:                              ; @.str.10
	.asciz	"nr_mem_id %u\n"

l_.str.11:                              ; @.str.11
	.asciz	"nr_extra_bufs %u\n"

	.no_dead_strip	_port_register
.subsections_via_symbols
