	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_registers
_get_registers:                         ## @get_registers
	.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	%r8, %rbx
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ecx, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_RTL8152_REQ_GET_REGS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_RTL8152_REQT_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subq	$8, %rsp
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r12d, %r8d
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	$500                            ## imm = 0x1F4
	pushq	%r14
	pushq	%r13
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	$255, %esi
	movl	%r14d, %edx
	callq	_memset
LBB0_5:
	movq	%r13, %rdi
	callq	_kfree
LBB0_6:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RTL8152_REQ_GET_REGS,4,2       ## @RTL8152_REQ_GET_REGS
	.comm	_RTL8152_REQT_READ,4,2          ## @RTL8152_REQT_READ
	.no_dead_strip	_get_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_registers
_get_registers:                         ; @get_registers
	.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	x21, x4
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x3
	bl	_kmalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w24, [x24]
	mov	x0, x24
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _RTL8152_REQ_GET_REGS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTL8152_REQ_GET_REGS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _RTL8152_REQT_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTL8152_REQT_READ@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w8, #500
	str	w8, [sp]
	mov	x0, x24
	mov	x4, x23
	mov	x5, x22
	mov	x6, x20
	mov	x7, x19
	bl	_usb_control_msg
	mov	x22, x0
	tbnz	w0, #31, LBB0_4
; %bb.2:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_6
LBB0_4:
	mov	x0, x21
	mov	w1, #255
	mov	x2, x19
	bl	_memset
LBB0_5:
	mov	x0, x20
	bl	_kfree
LBB0_6:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RTL8152_REQ_GET_REGS,4,2       ; @RTL8152_REQ_GET_REGS
	.comm	_RTL8152_REQT_READ,4,2          ; @RTL8152_REQT_READ
	.no_dead_strip	_get_registers
.subsections_via_symbols
