	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_hid_probe
_i2c_hid_probe:                         ## @i2c_hid_probe
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	16(%rdi), %r15
	movq	24(%rdi), %r13
	movl	32(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dbg_hid
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	js	LBB0_7
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.4:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_hid_of_probe
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_14
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_11
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movl	(%r12), %ebx
	jmp	LBB0_11
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	testq	%r13, %r13
	je	LBB0_24
## %bb.13:
	movq	16(%r13), %rax
	movq	%rax, 16(%r14)
	movups	(%r13), %xmm0
	movups	%xmm0, (%r14)
LBB0_14:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_hid_fwnode_probe
	movq	(%r14), %rdi
	leaq	L_.str.3(%rip), %rax
	movq	%rax, (%rdi)
	leaq	L_.str.4(%rip), %rax
	movq	%rax, 8(%rdi)
	callq	_ARRAY_SIZE
	movq	(%r14), %rdx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_devm_regulator_bulk_get
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_11
## %bb.15:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	(%r14), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_enable
	testl	%eax, %eax
	js	LBB0_25
## %bb.16:
	movq	16(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_18
## %bb.17:
	callq	_msleep
LBB0_18:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_clientdata
	movq	%r12, 64(%r14)
	movl	8(%r14), %edi
	callq	_cpu_to_le16
	movl	%eax, 56(%r14)
	leaq	52(%r14), %rdi
	callq	_init_waitqueue_head
	movq	%r14, %rdi
	addq	$48, %rdi
	callq	_mutex_init
	movq	_HID_MIN_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_i2c_hid_alloc_buffers
	testl	%eax, %eax
	js	LBB0_26
## %bb.19:
	movq	%r15, %rdi
	callq	_i2c_hid_acpi_fix_up_power
	movq	%r15, %rdi
	callq	_device_enable_async_suspend
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte
	testl	%eax, %eax
	js	LBB0_27
## %bb.20:
	movq	%r14, %rdi
	callq	_i2c_hid_fetch_hid_descriptor
	testl	%eax, %eax
	js	LBB0_26
## %bb.21:
	movq	%r12, %rdi
	callq	_i2c_hid_init_irq
	testl	%eax, %eax
	js	LBB0_26
## %bb.22:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_hid_allocate_device
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_30
## %bb.23:
	movq	%r13, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_34
LBB0_24:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_i2c_hid_acpi_pdata
	jmp	LBB0_5
LBB0_26:
	movl	%eax, %ebx
	jmp	LBB0_35
LBB0_25:
	movl	%eax, %ebx
	jmp	LBB0_11
LBB0_27:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_35
LBB0_30:
	movq	%r13, 40(%r14)
	movq	%r12, 56(%r13)
	movq	_i2c_hid_ll_driver@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r13)
	movq	%r15, 40(%r13)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movl	36(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, 24(%r13)
	movl	32(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, 8(%r13)
	movl	28(%r14), %edi
	callq	_le16_to_cpu
	movq	%rax, (%r13)
	movl	20(%r13), %edi
	movq	8(%r12), %rcx
	movq	8(%r13), %r8
	leaq	L_.str.6(%rip), %rdx
	movl	$4, %esi
	movq	%rax, %r9
	callq	_snprintf
	movl	16(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_dev_name
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%eax, %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	(%r13), %rsi
	movq	8(%r13), %rdi
	callq	_i2c_hid_lookup_quirk
	movl	%eax, 24(%r14)
	movq	%r13, %rdi
	callq	_hid_add_device
	testl	%eax, %eax
	je	LBB0_11
## %bb.31:
	movl	%eax, %r15d
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r15d, %eax
	je	LBB0_33
## %bb.32:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_hid_err
LBB0_33:
	movq	%r13, %rdi
	callq	_hid_destroy_device
LBB0_34:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_free_irq
	movl	%r15d, %ebx
LBB0_35:
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movq	(%r14), %rsi
	movl	%eax, %edi
	callq	_regulator_bulk_disable
	movq	%r14, %rdi
	callq	_i2c_hid_free_buffers
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HID probe called for i2c 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"HID over i2c has not been provided an Int IRQ\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.2:                               ## @.str.2
	.asciz	"HID over i2c doesn't have a valid IRQ\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"vdd"

L_.str.4:                               ## @.str.4
	.asciz	"vddl"

	.comm	_HID_MIN_BUFFER_SIZE,4,2        ## @HID_MIN_BUFFER_SIZE
L_.str.5:                               ## @.str.5
	.asciz	"nothing at this address: %d\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_i2c_hid_ll_driver,4,2          ## @i2c_hid_ll_driver
	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
L_.str.6:                               ## @.str.6
	.asciz	"%s %04hX:%04hX"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.7:                               ## @.str.7
	.asciz	"can't add hid device: %d\n"

	.no_dead_strip	_i2c_hid_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_hid_probe
_i2c_hid_probe:                         ; @i2c_hid_probe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
	add	x21, x0, #16
	ldr	x23, [x0, #24]
	ldr	w1, [x0, #32]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_hid
	ldr	w22, [x20]
	cbz	w22, LBB0_6
; %bb.1:
	tbnz	w22, #31, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.3:
	mov	x19, x0
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.4:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_hid_of_probe
LBB0_5:
	mov	x22, x0
	cbnz	w0, LBB0_11
	b	LBB0_14
LBB0_6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_dev_err
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh9:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_11
; %bb.8:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	ldr	w22, [x20]
	b	LBB0_11
LBB0_9:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_12:
	cbz	x23, LBB0_24
; %bb.13:
	ldr	q0, [x23]
	ldr	x8, [x23, #16]
	str	x8, [x19, #16]
	str	q0, [x19]
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_hid_fwnode_probe
	ldr	x0, [x19]
Lloh16:
	adrp	x8, l_.str.3@PAGE
Lloh17:
	add	x8, x8, l_.str.3@PAGEOFF
Lloh18:
	adrp	x9, l_.str.4@PAGE
Lloh19:
	add	x9, x9, l_.str.4@PAGEOFF
	stp	x8, x9, [x0]
	bl	_ARRAY_SIZE
	mov	x1, x0
	ldr	x2, [x19]
	mov	x0, x21
	bl	_devm_regulator_bulk_get
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.15:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	ldr	x1, [x19]
	bl	_regulator_bulk_enable
	tbnz	w0, #31, LBB0_26
; %bb.16:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_18
; %bb.17:
	bl	_msleep
LBB0_18:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_set_clientdata
	str	x20, [x19, #64]
	ldr	w0, [x19, #8]
	bl	_cpu_to_le16
	str	w0, [x19, #56]
	add	x0, x19, #52
	bl	_init_waitqueue_head
	add	x0, x19, #48
	bl	_mutex_init
Lloh20:
	adrp	x8, _HID_MIN_BUFFER_SIZE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HID_MIN_BUFFER_SIZE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_hid_alloc_buffers
	tbnz	w0, #31, LBB0_25
; %bb.19:
	mov	x0, x21
	bl	_i2c_hid_acpi_fix_up_power
	mov	x0, x21
	bl	_device_enable_async_suspend
	mov	x0, x20
	bl	_i2c_smbus_read_byte
	tbnz	w0, #31, LBB0_27
; %bb.20:
	mov	x0, x19
	bl	_i2c_hid_fetch_hid_descriptor
	tbnz	w0, #31, LBB0_25
; %bb.21:
	mov	x0, x20
	bl	_i2c_hid_init_irq
	tbnz	w0, #31, LBB0_25
; %bb.22:
	bl	_hid_allocate_device
	mov	x23, x0
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.23:
	mov	x0, x23
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_32
LBB0_24:
	mov	x0, x20
	mov	x1, x19
	bl	_i2c_hid_acpi_pdata
	b	LBB0_5
LBB0_25:
	mov	x22, x0
	b	LBB0_33
LBB0_26:
	mov	x22, x0
	b	LBB0_11
LBB0_27:
	mov	x2, x0
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_dbg
Lloh25:
	adrp	x8, _ENXIO@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_33
LBB0_28:
	str	x23, [x19, #40]
	str	x20, [x23, #56]
Lloh28:
	adrp	x8, _i2c_hid_ll_driver@GOTPAGE
Lloh29:
	ldr	x8, [x8, _i2c_hid_ll_driver@GOTPAGEOFF]
	stp	x21, x8, [x23, #40]
Lloh30:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	str	w8, [x23, #32]
	ldr	w0, [x19, #36]
	bl	_le16_to_cpu
	str	x0, [x23, #24]
	ldr	w0, [x19, #32]
	bl	_le16_to_cpu
	str	x0, [x23, #8]
	ldr	w0, [x19, #28]
	bl	_le16_to_cpu
	mov	x5, x0
	str	x0, [x23]
	ldr	w0, [x23, #20]
	ldr	x3, [x20, #8]
	ldr	x4, [x23, #8]
Lloh33:
	adrp	x2, l_.str.6@PAGE
Lloh34:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	w1, #4
	bl	_snprintf
	ldr	w22, [x23, #16]
	mov	x0, x21
	bl	_dev_name
	mov	x1, x0
	mov	x0, x22
	mov	w2, #4
	bl	_strlcpy
	ldp	x1, x0, [x23]
	bl	_i2c_hid_lookup_quirk
	str	w0, [x19, #24]
	mov	x0, x23
	bl	_hid_add_device
	mov	x22, x0
	cbz	w0, LBB0_11
; %bb.29:
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	cmn	w22, w8
	b.eq	LBB0_31
; %bb.30:
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_hid_err
LBB0_31:
	mov	x0, x23
	bl	_hid_destroy_device
LBB0_32:
	ldr	w0, [x20]
	mov	x1, x19
	bl	_free_irq
LBB0_33:
	ldr	x0, [x19]
	bl	_ARRAY_SIZE
	ldr	x1, [x19]
	bl	_regulator_bulk_disable
	mov	x0, x19
	bl	_i2c_hid_free_buffers
	b	LBB0_11
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HID probe called for i2c 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"HID over i2c has not been provided an Int IRQ\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.2:                               ; @.str.2
	.asciz	"HID over i2c doesn't have a valid IRQ\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"vdd"

l_.str.4:                               ; @.str.4
	.asciz	"vddl"

	.comm	_HID_MIN_BUFFER_SIZE,4,2        ; @HID_MIN_BUFFER_SIZE
l_.str.5:                               ; @.str.5
	.asciz	"nothing at this address: %d\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_i2c_hid_ll_driver,4,2          ; @i2c_hid_ll_driver
	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
l_.str.6:                               ; @.str.6
	.asciz	"%s %04hX:%04hX"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.7:                               ; @.str.7
	.asciz	"can't add hid device: %d\n"

	.no_dead_strip	_i2c_hid_probe
.subsections_via_symbols
