	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_kbd_alloc_mem
_usb_kbd_alloc_mem:                     ## @usb_kbd_alloc_mem
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 56(%rbx)
	movl	$-1, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movl	(%r12), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, 48(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	32(%rbx), %rcx
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_usb_buffer_alloc
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movl	(%r12), %edx
	leaq	16(%rbx), %rcx
	movq	%r15, %rdi
	movl	$4, %esi
	callq	_usb_buffer_alloc
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_usb_buffer_alloc
	movq	%rax, 8(%rbx)
	xorl	%r14d, %r14d
	cmpq	$1, %rax
	sbbl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.no_dead_strip	_usb_kbd_alloc_mem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_kbd_alloc_mem
_usb_kbd_alloc_mem:                     ; @usb_kbd_alloc_mem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #56]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w1, [x21]
	mov	w0, #0
	bl	_usb_alloc_urb
	str	x0, [x19, #48]
	cbz	x0, LBB0_5
; %bb.2:
Lloh2:
	adrp	x21, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	w2, [x21]
	add	x3, x19, #32
	mov	x0, x20
	mov	w1, #8
	bl	_usb_buffer_alloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w2, [x21]
	add	x3, x19, #16
	mov	x0, x20
	mov	w1, #4
	bl	_usb_buffer_alloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w2, [x21]
	mov	x0, x20
	mov	w1, #1
	mov	x3, x19
	bl	_usb_buffer_alloc
	str	x0, [x19, #8]
	cmp	x0, #0
	csetm	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.no_dead_strip	_usb_kbd_alloc_mem
.subsections_via_symbols
