	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nbd_ioctl
_nbd_ioctl:                             ## @nbd_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	(%rax), %r15
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%r15), %rax
	movq	_LO_MAGIC@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_BUG_ON
	movq	_DBG_IOCTL@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%r15), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	%r12d, %edi
	callq	_ioctl_cmd_to_ascii
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	%r12d, %r8d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_dprintk
	leaq	8(%r15), %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %edx
	movq	%r14, %rcx
	callq	___nbd_ioctl
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,4,2                      ## @EPERM
	.comm	_LO_MAGIC,8,3                   ## @LO_MAGIC
	.comm	_DBG_IOCTL,4,2                  ## @DBG_IOCTL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: nbd_ioctl cmd=%s(0x%x) arg=%lu\n"

	.no_dead_strip	_nbd_ioctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nbd_ioctl
_nbd_ioctl:                             ; @nbd_ioctl
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x0]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _LO_MAGIC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LO_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_BUG_ON
Lloh6:
	adrp	x8, _DBG_IOCTL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DBG_IOCTL@GOTPAGEOFF]
Lloh8:
	ldr	w23, [x8]
	ldr	x8, [x22, #16]
	ldr	w24, [x8]
	mov	x0, x20
	bl	_ioctl_cmd_to_ascii
	mov	x3, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
	mov	x4, x20
	mov	x5, x19
	bl	_dprintk
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	mov	x3, x19
	bl	___nbd_ioctl
	mov	x19, x0
	mov	x0, x23
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _EPERM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,4,2                      ; @EPERM
	.comm	_LO_MAGIC,8,3                   ; @LO_MAGIC
	.comm	_DBG_IOCTL,4,2                  ; @DBG_IOCTL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: nbd_ioctl cmd=%s(0x%x) arg=%lu\n"

	.no_dead_strip	_nbd_ioctl
.subsections_via_symbols
