	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioctl_get_info
_ioctl_get_info:                        ## @ioctl_get_info
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	32(%rsi), %eax
	movl	%eax, 16(%rdi)
	movq	_FW_CDEV_KERNEL_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rsi)
	movq	(%rdi), %rax
	movq	24(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rsi)
	movq	_fw_device_rwsem@GOTPCREL(%rip), %rdi
	callq	_down_read
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rax
	movslq	(%rax), %r12
	shlq	$2, %r12
	callq	_u64_to_uptr
	movl	%eax, %r13d
	movq	(%r14), %rax
	movq	16(%rax), %r15
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_min
	movl	%r13d, %edi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_copy_to_user
	movq	%rax, %r15
	movq	(%r14), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	movq	%rax, 8(%rbx)
	movq	_fw_device_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_read
	testq	%r15, %r15
	je	LBB0_4
## %bb.2:
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_10
LBB0_3:
	movq	(%r14), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	movq	%rax, 8(%rbx)
	movq	_fw_device_rwsem@GOTPCREL(%rip), %rdi
	callq	_up_read
LBB0_4:
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_mutex_lock
	movl	24(%rbx), %eax
	movl	%eax, 12(%r14)
	cmpq	$0, 16(%rbx)
	je	LBB0_7
## %bb.5:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_fill_bus_reset_event
	movq	16(%rbx), %rdi
	callq	_u64_to_uptr
	movl	%eax, %edi
	movq	%r15, %rsi
	movl	$36, %edx
	callq	_copy_to_user
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_7:
	leaq	8(%r14), %rbx
	movq	%rbx, %rdi
	callq	_list_empty
	movb	$1, %r15b
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%r14), %rsi
	addq	$8, %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
LBB0_9:
	movq	(%r14), %rdi
	addq	$4, %rdi
	callq	_mutex_unlock
	movq	_EFAULT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testb	%r15b, %r15b
	cmovnel	%ecx, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_CDEV_KERNEL_VERSION,4,2     ## @FW_CDEV_KERNEL_VERSION
	.comm	_fw_device_rwsem,4,2            ## @fw_device_rwsem
	.comm	_EFAULT,4,2                     ## @EFAULT
	.no_dead_strip	_ioctl_get_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioctl_get_info
_ioctl_get_info:                        ; @ioctl_get_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #32]
	str	w8, [x0, #16]
Lloh0:
	adrp	x8, _FW_CDEV_KERNEL_VERSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_CDEV_KERNEL_VERSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x9, [x0]
	ldr	x9, [x9, #24]
	ldr	w9, [x9]
	stp	w9, w8, [x1, #28]
Lloh3:
	adrp	x0, _fw_device_rwsem@GOTPAGE
Lloh4:
	ldr	x0, [x0, _fw_device_rwsem@GOTPAGEOFF]
	bl	_down_read
	ldr	x0, [x20]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x21, [x20, #8]
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	lsl	x22, x8, #2
	bl	_u64_to_uptr
	mov	x23, x0
	ldr	x8, [x19]
	ldr	x24, [x8, #16]
	mov	x0, x21
	mov	x1, x22
	bl	_min
	mov	x2, x0
	mov	x0, x23
	mov	x1, x24
	bl	_copy_to_user
	mov	x21, x0
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	lsl	x8, x8, #2
	str	x8, [x20, #8]
Lloh5:
	adrp	x0, _fw_device_rwsem@GOTPAGE
Lloh6:
	ldr	x0, [x0, _fw_device_rwsem@GOTPAGEOFF]
	bl	_up_read
	cbz	x21, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _EFAULT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_3:
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	lsl	x8, x8, #2
	str	x8, [x20, #8]
Lloh10:
	adrp	x0, _fw_device_rwsem@GOTPAGE
Lloh11:
	ldr	x0, [x0, _fw_device_rwsem@GOTPAGEOFF]
	bl	_up_read
LBB0_4:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_mutex_lock
	ldr	w8, [x20, #24]
	str	w8, [x19, #12]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_7
; %bb.5:
	add	x0, sp, #8
	mov	x1, x19
	bl	_fill_bus_reset_event
	ldr	x0, [x20, #16]
	bl	_u64_to_uptr
	add	x1, sp, #8
	mov	w2, #36
	bl	_copy_to_user
	cbz	x0, LBB0_7
; %bb.6:
	mov	w20, #0
	b	LBB0_10
LBB0_7:
	add	x20, x19, #8
	mov	x0, x20
	bl	_list_empty
	cbz	x0, LBB0_9
; %bb.8:
	ldr	x8, [x19]
	add	x1, x8, #8
	mov	x0, x20
	bl	_list_add_tail
LBB0_9:
	mov	w20, #1
LBB0_10:
	ldr	x8, [x19]
	add	x0, x8, #4
	bl	_mutex_unlock
Lloh12:
	adrp	x8, _EFAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, wzr, w8, ne
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_CDEV_KERNEL_VERSION,4,2     ; @FW_CDEV_KERNEL_VERSION
	.comm	_fw_device_rwsem,4,2            ; @fw_device_rwsem
	.comm	_EFAULT,4,2                     ; @EFAULT
	.no_dead_strip	_ioctl_get_info
.subsections_via_symbols
