	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mce_request_packet
_mce_request_packet:                    ## @mce_request_packet
	.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
	movl	%ecx, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movq	_MCEUSB_TX@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	%rsi, %r13
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_usb_alloc_urb
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_4:
	movq	_MCEUSB_RX@GOTPCREL(%rip), %rax
	cmpl	%r8d, (%rax)
	jne	LBB0_12
## %bb.5:
	movq	8(%rbx), %r12
	movq	_RECV_FLAG_IN_PROGRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_6
LBB0_12:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	%r8d, %edx
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:
	movl	(%rbx), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	4(%r13), %esi
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_usb_sndintpipe
	movq	_mce_async_callback@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	(%r13), %r10d
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%r15d, %r8d
	pushq	%r10
	pushq	%rbx
	callq	_usb_fill_int_urb
	addq	$16, %rsp
	movq	%r13, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	callq	_memcpy
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_dev_dbg
	movl	%r15d, (%r12)
	movl	(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_submit_urb
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	jmp	LBB0_8
LBB0_9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg                        ## TAILCALL
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_usb_free_urb                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MCEUSB_TX,4,2                  ## @MCEUSB_TX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error, couldn't allocate urb!\n"

L_.str.1:                               ## @.str.1
	.asciz	"Error, couldn't allocate buf!\n"

	.comm	_mce_async_callback,8,3         ## @mce_async_callback
	.comm	_MCEUSB_RX,4,2                  ## @MCEUSB_RX
	.comm	_RECV_FLAG_IN_PROGRESS,4,2      ## @RECV_FLAG_IN_PROGRESS
L_.str.2:                               ## @.str.2
	.asciz	"Error! Unknown urb type %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"receive request called (size=%#x)\n"

	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
L_.str.4:                               ## @.str.4
	.asciz	"receive request FAILED! (res=%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"receive request complete (res=%d)\n"

	.no_dead_strip	_mce_request_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mce_request_packet
_mce_request_packet:                    ; @mce_request_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
                                        ; kill: def $w4 killed $w4 def $x4
	mov	x20, x3
	mov	x21, x0
	ldr	x19, [x0, #16]
Lloh0:
	adrp	x8, _MCEUSB_TX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCEUSB_TX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_3
; %bb.1:
	mov	x23, x2
	mov	x24, x1
Lloh3:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	w0, #0
	bl	_usb_alloc_urb
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_err
LBB0_3:
Lloh7:
	adrp	x8, _MCEUSB_RX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MCEUSB_RX@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w4
	b.ne	LBB0_5
; %bb.4:
	ldr	x22, [x21, #8]
Lloh10:
	adrp	x8, _RECV_FLAG_IN_PROGRESS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RECV_FLAG_IN_PROGRESS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x21, #4]
	b	LBB0_8
LBB0_5:
	str	x4, [sp]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	ldr	w1, [x25]
	mov	x0, x20
	bl	_kzalloc
	cbz	x0, LBB0_12
; %bb.7:
	mov	x25, x0
	ldr	w26, [x21]
	ldr	w1, [x24, #4]
	mov	x0, x26
	bl	_usb_sndintpipe
	mov	x2, x0
Lloh15:
	adrp	x8, _mce_async_callback@GOTPAGE
Lloh16:
	ldr	x8, [x8, _mce_async_callback@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	ldr	w7, [x24]
	mov	x0, x22
	mov	x1, x26
	mov	x3, x25
	mov	x4, x20
	mov	x6, x21
	bl	_usb_fill_int_urb
	mov	x0, x25
	mov	x1, x23
	mov	x2, x20
	bl	_memcpy
LBB0_8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
	ldr	w8, [x21]
	stp	w20, w8, [x22]
Lloh20:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_usb_submit_urb
	mov	x2, x0
	cbz	w0, LBB0_10
; %bb.9:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_11
LBB0_10:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_dev_dbg
LBB0_12:
Lloh27:
	adrp	x1, l_.str.1@PAGE
Lloh28:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_usb_free_urb
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_MCEUSB_TX,4,2                  ; @MCEUSB_TX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error, couldn't allocate urb!\n"

l_.str.1:                               ; @.str.1
	.asciz	"Error, couldn't allocate buf!\n"

	.comm	_mce_async_callback,8,3         ; @mce_async_callback
	.comm	_MCEUSB_RX,4,2                  ; @MCEUSB_RX
	.comm	_RECV_FLAG_IN_PROGRESS,4,2      ; @RECV_FLAG_IN_PROGRESS
l_.str.2:                               ; @.str.2
	.asciz	"Error! Unknown urb type %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"receive request called (size=%#x)\n"

	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
l_.str.4:                               ; @.str.4
	.asciz	"receive request FAILED! (res=%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"receive request complete (res=%d)\n"

	.no_dead_strip	_mce_request_packet
.subsections_via_symbols
