	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csb_enable
_csb_enable:                            ## @csb_enable
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	-24(%rbp), %rsi
	callq	_push_csb_option
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	$0, -32(%rbp)
	movq	(%r14), %rsi
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nmreq_hdr_init
	movq	_NETMAP_REQ_CSB_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	16(%r14), %rax
	movq	%rax, -56(%rbp)
	movq	$0, -48(%rbp)
	movq	(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	8(%r14), %edi
	movq	_NIOCCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	leaq	-24(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_checkoption
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_clear_options
LBB0_4:
	movl	%ebx, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	callq	_perror
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_NETMAP_REQ_CSB_ENABLE,4,2      ## @NETMAP_REQ_CSB_ENABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Testing NETMAP_REQ_CSB_ENABLE on '%s'\n"

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

	.no_dead_strip	_csb_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csb_enable
_csb_enable:                            ; @csb_enable
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x1, sp, #32
	bl	_push_csb_option
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	stur	xzr, [x29, #-24]
	ldr	x1, [x19]
	add	x0, sp, #8
	bl	_nmreq_hdr_init
Lloh0:
	adrp	x8, _NETMAP_REQ_CSB_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETMAP_REQ_CSB_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	x8, [x19, #16]
	stp	x8, xzr, [sp, #8]
	ldr	x1, [x19]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _NIOCCTRL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NIOCCTRL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_ioctl
	cbnz	w0, LBB0_4
; %bb.2:
	add	x0, sp, #32
	sub	x1, x29, #24
	bl	_checkoption
	mov	x20, x0
	mov	x0, x19
	bl	_clear_options
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_perror
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NETMAP_REQ_CSB_ENABLE,4,2      ; @NETMAP_REQ_CSB_ENABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Testing NETMAP_REQ_CSB_ENABLE on '%s'\n"

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

	.no_dead_strip	_csb_enable
.subsections_via_symbols
