	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sony_allocate_output_report
_sony_allocate_output_report:           ## @sony_allocate_output_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movq	_SIXAXIS_CONTROLLER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	_NAVIGATION_CONTROLLER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_2:
	movq	16(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
LBB0_11:
	callq	_devm_kmalloc
	movq	%rax, 8(%rbx)
	xorl	%ecx, %ecx
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
LBB0_13:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	_DUALSHOCK4_CONTROLLER_BT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	16(%rbx), %rdi
	movq	_DS4_OUTPUT_REPORT_0x11_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_DUALSHOCK4_CONTROLLER_USB@GOTPCREL(%rip), %rcx
	movq	_DUALSHOCK4_DONGLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_7
## %bb.6:
	movq	16(%rbx), %rdi
	movq	_DS4_OUTPUT_REPORT_0x05_SIZE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_MOTION_CONTROLLER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.9:
	movq	16(%rbx), %rdi
	movq	_MOTION_REPORT_0x02_SIZE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	jmp	LBB0_11
LBB0_8:
	xorl	%ecx, %ecx
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_SIXAXIS_CONTROLLER,4,2         ## @SIXAXIS_CONTROLLER
	.comm	_NAVIGATION_CONTROLLER,4,2      ## @NAVIGATION_CONTROLLER
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_DUALSHOCK4_CONTROLLER_BT,4,2   ## @DUALSHOCK4_CONTROLLER_BT
	.comm	_DS4_OUTPUT_REPORT_0x11_SIZE,4,2 ## @DS4_OUTPUT_REPORT_0x11_SIZE
	.comm	_DUALSHOCK4_CONTROLLER_USB,4,2  ## @DUALSHOCK4_CONTROLLER_USB
	.comm	_DUALSHOCK4_DONGLE,4,2          ## @DUALSHOCK4_DONGLE
	.comm	_DS4_OUTPUT_REPORT_0x05_SIZE,4,2 ## @DS4_OUTPUT_REPORT_0x05_SIZE
	.comm	_MOTION_CONTROLLER,4,2          ## @MOTION_CONTROLLER
	.comm	_MOTION_REPORT_0x02_SIZE,4,2    ## @MOTION_REPORT_0x02_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_sony_allocate_output_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sony_allocate_output_report
_sony_allocate_output_report:           ; @sony_allocate_output_report
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _SIXAXIS_CONTROLLER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SIXAXIS_CONTROLLER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x9, _NAVIGATION_CONTROLLER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NAVIGATION_CONTROLLER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
LBB0_2:
	ldr	x0, [x19, #16]
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #4
LBB0_3:
	bl	_devm_kmalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh12:
	adrp	x9, _DUALSHOCK4_CONTROLLER_BT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _DUALSHOCK4_CONTROLLER_BT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	x0, [x19, #16]
Lloh15:
	adrp	x8, _DS4_OUTPUT_REPORT_0x11_SIZE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DS4_OUTPUT_REPORT_0x11_SIZE@GOTPAGEOFF]
	b	LBB0_13
LBB0_9:
Lloh17:
	adrp	x9, _DUALSHOCK4_CONTROLLER_USB@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DUALSHOCK4_CONTROLLER_USB@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _DUALSHOCK4_DONGLE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _DUALSHOCK4_DONGLE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
	ldr	x0, [x19, #16]
Lloh23:
	adrp	x8, _DS4_OUTPUT_REPORT_0x05_SIZE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DS4_OUTPUT_REPORT_0x05_SIZE@GOTPAGEOFF]
	b	LBB0_13
LBB0_11:
Lloh25:
	adrp	x9, _MOTION_CONTROLLER@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MOTION_CONTROLLER@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.12:
	ldr	x0, [x19, #16]
Lloh28:
	adrp	x8, _MOTION_REPORT_0x02_SIZE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MOTION_REPORT_0x02_SIZE@GOTPAGEOFF]
LBB0_13:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_SIXAXIS_CONTROLLER,4,2         ; @SIXAXIS_CONTROLLER
	.comm	_NAVIGATION_CONTROLLER,4,2      ; @NAVIGATION_CONTROLLER
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_DUALSHOCK4_CONTROLLER_BT,4,2   ; @DUALSHOCK4_CONTROLLER_BT
	.comm	_DS4_OUTPUT_REPORT_0x11_SIZE,4,2 ; @DS4_OUTPUT_REPORT_0x11_SIZE
	.comm	_DUALSHOCK4_CONTROLLER_USB,4,2  ; @DUALSHOCK4_CONTROLLER_USB
	.comm	_DUALSHOCK4_DONGLE,4,2          ; @DUALSHOCK4_DONGLE
	.comm	_DS4_OUTPUT_REPORT_0x05_SIZE,4,2 ; @DS4_OUTPUT_REPORT_0x05_SIZE
	.comm	_MOTION_CONTROLLER,4,2          ; @MOTION_CONTROLLER
	.comm	_MOTION_REPORT_0x02_SIZE,4,2    ; @MOTION_REPORT_0x02_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_sony_allocate_output_report
.subsections_via_symbols
