	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function steam_recv_report
_steam_recv_report:                     ## @steam_recv_report
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_hid_report_len
	cmpl	$63, %eax
	jg	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hid_alloc_report_buf
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	(%r13), %r13
	movq	%rbx, %rdi
	callq	_hid_report_len
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ecx
	movq	(%r14), %r8
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r13, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_hid_hw_raw_request
	movl	%eax, %ebx
	testl	%eax, %eax
	jle	LBB0_7
## %bb.6:
	movq	%r12, %r13
	addq	$4, %r13
	leal	-1(%rbx), %esi
	movl	%r15d, %edi
	callq	_min
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_memcpy
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_8
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_FEATURE_REPORT,8,3         ## @HID_FEATURE_REPORT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
	.no_dead_strip	_steam_recv_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function steam_recv_report
_steam_recv_report:                     ; @steam_recv_report
	.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	x19, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x24, _HID_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x23, [x8]
	mov	x0, x23
	bl	_hid_report_len
	cmp	w0, #63
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_hid_alloc_report_buf
	cbz	x0, LBB0_6
; %bb.3:
	mov	x21, x0
	ldr	x22, [x22]
	mov	x0, x23
	bl	_hid_report_len
	add	w3, w0, #1
	ldr	x4, [x24]
Lloh7:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh9:
	ldr	w5, [x8]
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	bl	_hid_hw_raw_request
	mov	x22, x0
	subs	w1, w0, #1
	b.lt	LBB0_5
; %bb.4:
	add	x23, x21, #4
	mov	x0, x20
	bl	_min
	mov	x2, x0
	mov	x0, x19
	mov	x1, x23
	bl	_memcpy
LBB0_5:
	mov	x0, x21
	bl	_kfree
	b	LBB0_8
LBB0_6:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_8:
	mov	x0, x22
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_FEATURE_REPORT,8,3         ; @HID_FEATURE_REPORT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
	.no_dead_strip	_steam_recv_report
.subsections_via_symbols
