	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hid_sensor_custom_dev_if_add
_hid_sensor_custom_dev_if_add:          ## @hid_sensor_custom_dev_if_add
	.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, %r14
	movq	_HID_CUSTOM_FIFO_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_kfifo_alloc
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	leaq	32(%r14), %rdi
	callq	_init_waitqueue_head
	movq	_MISC_DYNAMIC_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%r14), %rbx
	movl	%eax, 20(%r14)
	movq	24(%r14), %rdi
	callq	_dev_name
	movl	%eax, 16(%r14)
	movq	_hid_sensor_custom_fops@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_misc_register
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_kfifo_free
	jmp	LBB0_4
LBB0_2:
	xorl	%ebx, %ebx
LBB0_4:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HID_CUSTOM_FIFO_SIZE,4,2       ## @HID_CUSTOM_FIFO_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_MISC_DYNAMIC_MINOR,4,2         ## @MISC_DYNAMIC_MINOR
	.comm	_hid_sensor_custom_fops,4,2     ## @hid_sensor_custom_fops
	.no_dead_strip	_hid_sensor_custom_dev_if_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hid_sensor_custom_dev_if_add
_hid_sensor_custom_dev_if_add:          ; @hid_sensor_custom_dev_if_add
	.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
Lloh0:
	adrp	x8, _HID_CUSTOM_FIFO_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HID_CUSTOM_FIFO_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_kfifo_alloc
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
	add	x0, x19, #32
	bl	_init_waitqueue_head
Lloh6:
	adrp	x8, _MISC_DYNAMIC_MINOR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MISC_DYNAMIC_MINOR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	x0, [x19, #24]
	bl	_dev_name
Lloh9:
	adrp	x9, _hid_sensor_custom_fops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _hid_sensor_custom_fops@GOTPAGEOFF]
	mov	x8, x19
	str	x9, [x8, #8]!
	str	w0, [x8, #8]
	mov	x0, x8
	bl	_misc_register
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_kfifo_free
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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_HID_CUSTOM_FIFO_SIZE,4,2       ; @HID_CUSTOM_FIFO_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_MISC_DYNAMIC_MINOR,4,2         ; @MISC_DYNAMIC_MINOR
	.comm	_hid_sensor_custom_fops,4,2     ; @hid_sensor_custom_fops
	.no_dead_strip	_hid_sensor_custom_dev_if_add
.subsections_via_symbols
