	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___hid_register_driver          ## -- Begin function __hid_register_driver
	.p2align	4, 0x90
___hid_register_driver:                 ## @__hid_register_driver
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	40(%rdi), %eax
	movl	%eax, 24(%rdi)
	movq	_hid_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rdi)
	movq	%rsi, 8(%rdi)
	movq	%rdx, (%rdi)
	addq	$36, %rdi
	callq	_INIT_LIST_HEAD
	leaq	32(%rbx), %rdi
	callq	_spin_lock_init
	movq	%rbx, %rdi
	callq	_driver_register
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_driver_attr_new_id@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_driver_create_file
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_driver_unregister
	jmp	LBB0_4
LBB0_2:
	xorl	%r14d, %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hid_bus_type,4,2               ## @hid_bus_type
	.comm	_driver_attr_new_id,4,2         ## @driver_attr_new_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___hid_register_driver          ; -- Begin function __hid_register_driver
	.p2align	2
___hid_register_driver:                 ; @__hid_register_driver
	.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, #40]
	str	w8, [x0, #24]
Lloh0:
	adrp	x8, _hid_bus_type@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hid_bus_type@GOTPAGEOFF]
	stp	x1, x8, [x0, #8]
	str	x2, [x0], #36
	bl	_INIT_LIST_HEAD
	add	x0, x19, #32
	bl	_spin_lock_init
	mov	x0, x19
	bl	_driver_register
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, _driver_attr_new_id@GOTPAGE
Lloh3:
	ldr	x1, [x1, _driver_attr_new_id@GOTPAGEOFF]
	mov	x0, x19
	bl	_driver_create_file
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_driver_unregister
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_hid_bus_type,4,2               ; @hid_bus_type
	.comm	_driver_attr_new_id,4,2         ; @driver_attr_new_id
.subsections_via_symbols
