	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_ioctl_control               ## -- Begin function hl_ioctl_control
	.p2align	4, 0x90
_hl_ioctl_control:                      ## @hl_ioctl_control
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movl	%esi, %edi
	callq	__IOC_NR
	movl	%eax, %ebx
	movq	_HL_IOCTL_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__IOC_NR
	cmpl	%eax, %ebx
	jne	LBB0_1
## %bb.2:
	movq	_hl_ioctls_control@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	shlq	$2, %rcx
	addq	(%rax), %rcx
	movl	(%r13), %r8d
	movq	%r12, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__hl_ioctl                      ## TAILCALL
LBB0_1:
	movl	(%r13), %r14d
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_task_pid_nr
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_dev_err
	movq	_ENOTTY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HL_IOCTL_INFO,4,2              ## @HL_IOCTL_INFO
	.comm	_hl_ioctls_control,8,3          ## @hl_ioctls_control
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid ioctl: pid=%d, nr=0x%02x\n"

	.comm	_current,4,2                    ## @current
	.comm	_ENOTTY,8,3                     ## @ENOTTY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hl_ioctl_control               ; -- Begin function hl_ioctl_control
	.p2align	2
_hl_ioctl_control:                      ; @hl_ioctl_control
	.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	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x23, [x8]
	mov	x0, x1
	bl	__IOC_NR
	mov	x19, x0
Lloh0:
	adrp	x8, _HL_IOCTL_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HL_IOCTL_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	__IOC_NR
	cmp	w19, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _hl_ioctls_control@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hl_ioctls_control@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x3, x8, w19, uxtw #2
	ldr	w4, [x23]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	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
	b	__hl_ioctl
LBB0_2:
	ldr	w20, [x23]
Lloh6:
	adrp	x8, _current@GOTPAGE
Lloh7:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_task_pid_nr
	mov	x2, x0
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_dev_err
Lloh11:
	adrp	x8, _ENOTTY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOTTY@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	neg	x0, x8
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HL_IOCTL_INFO,4,2              ; @HL_IOCTL_INFO
	.comm	_hl_ioctls_control,8,3          ; @hl_ioctls_control
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid ioctl: pid=%d, nr=0x%02x\n"

	.comm	_current,4,2                    ; @current
	.comm	_ENOTTY,8,3                     ; @ENOTTY
.subsections_via_symbols
