	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nxp_nci_i2c_probe
_nxp_nci_i2c_probe:                     ## @nxp_nci_i2c_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	movq	_I2C_FUNC_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_check_functionality
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r14
	movq	%r15, 24(%rax)
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	_acpi_nxp_nci_gpios@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_devm_acpi_dev_add_driver_gpios
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_15
## %bb.6:
	movq	_GPIOD_OUT_LOW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_nfc_err
	movq	16(%r14), %rdi
	jmp	LBB0_8
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_nfc_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_4:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	(%rbx), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_devm_gpiod_get
	movq	%rax, 8(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_nfc_err
	movq	8(%r14), %rdi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_11:
	movq	_NXP_NCI_I2C_MAX_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_i2c_phy_ops@GOTPCREL(%rip), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r14, %r8
	callq	_nxp_nci_probe
	testl	%eax, %eax
	js	LBB0_12
## %bb.13:
	movl	4(%r15), %edi
	movq	_nxp_nci_i2c_irq_thread_fn@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_IRQF_TRIGGER_RISING@GOTPCREL(%rip), %rax
	movq	_IRQF_ONESHOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_NXP_NCI_I2C_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r14, %r9
	callq	_request_threaded_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_nfc_err
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_FUNC_I2C,4,2               ## @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Need I2C_FUNC_I2C\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_acpi_nxp_nci_gpios,4,2         ## @acpi_nxp_nci_gpios
L_.str.1:                               ## @.str.1
	.asciz	"enable"

	.comm	_GPIOD_OUT_LOW,4,2              ## @GPIOD_OUT_LOW
L_.str.2:                               ## @.str.2
	.asciz	"Failed to get EN gpio\n"

L_.str.3:                               ## @.str.3
	.asciz	"firmware"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to get FW gpio\n"

	.comm	_i2c_phy_ops,4,2                ## @i2c_phy_ops
	.comm	_NXP_NCI_I2C_MAX_PAYLOAD,4,2    ## @NXP_NCI_I2C_MAX_PAYLOAD
	.comm	_nxp_nci_i2c_irq_thread_fn,4,2  ## @nxp_nci_i2c_irq_thread_fn
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_NXP_NCI_I2C_DRIVER_NAME,4,2    ## @NXP_NCI_I2C_DRIVER_NAME
L_.str.5:                               ## @.str.5
	.asciz	"Unable to register IRQ handler\n"

	.no_dead_strip	_nxp_nci_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nxp_nci_i2c_probe
_nxp_nci_i2c_probe:                     ; @nxp_nci_i2c_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _I2C_FUNC_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_FUNC_I2C@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_check_functionality
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #32
	bl	_devm_kzalloc
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
Lloh6:
	adrp	x8, _acpi_nxp_nci_gpios@GOTPAGE
Lloh7:
	ldr	x8, [x8, _acpi_nxp_nci_gpios@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_devm_acpi_dev_add_driver_gpios
	mov	x21, x0
	cbnz	w0, LBB0_8
; %bb.3:
Lloh9:
	adrp	x21, _GPIOD_OUT_LOW@GOTPAGE
Lloh10:
	ldr	x21, [x21, _GPIOD_OUT_LOW@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.4:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nfc_err
	ldr	x0, [x20, #16]
	b	LBB0_11
LBB0_5:
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_nfc_err
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w2, [x21]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_devm_gpiod_get
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.10:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_nfc_err
	ldr	x0, [x20, #8]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_12:
Lloh25:
	adrp	x8, _NXP_NCI_I2C_MAX_PAYLOAD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NXP_NCI_I2C_MAX_PAYLOAD@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x2, _i2c_phy_ops@GOTPAGE
Lloh29:
	ldr	x2, [x2, _i2c_phy_ops@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, x20
	bl	_nxp_nci_probe
	tbnz	w0, #31, LBB0_15
; %bb.13:
Lloh30:
	adrp	x8, _nxp_nci_i2c_irq_thread_fn@GOTPAGE
Lloh31:
	ldr	x8, [x8, _nxp_nci_i2c_irq_thread_fn@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh35:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh36:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh39:
	adrp	x8, _NXP_NCI_I2C_DRIVER_NAME@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NXP_NCI_I2C_DRIVER_NAME@GOTPAGEOFF]
Lloh41:
	ldr	w4, [x8]
	mov	x1, #0
	mov	x5, x20
	bl	_request_threaded_irq
	mov	x21, x0
	tbz	w0, #31, LBB0_8
; %bb.14:
Lloh42:
	adrp	x1, l_.str.5@PAGE
Lloh43:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_nfc_err
	b	LBB0_8
LBB0_15:
	mov	x21, x0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh37
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_FUNC_I2C,4,2               ; @I2C_FUNC_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Need I2C_FUNC_I2C\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_acpi_nxp_nci_gpios,4,2         ; @acpi_nxp_nci_gpios
l_.str.1:                               ; @.str.1
	.asciz	"enable"

	.comm	_GPIOD_OUT_LOW,4,2              ; @GPIOD_OUT_LOW
l_.str.2:                               ; @.str.2
	.asciz	"Failed to get EN gpio\n"

l_.str.3:                               ; @.str.3
	.asciz	"firmware"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to get FW gpio\n"

	.comm	_i2c_phy_ops,4,2                ; @i2c_phy_ops
	.comm	_NXP_NCI_I2C_MAX_PAYLOAD,4,2    ; @NXP_NCI_I2C_MAX_PAYLOAD
	.comm	_nxp_nci_i2c_irq_thread_fn,4,2  ; @nxp_nci_i2c_irq_thread_fn
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_NXP_NCI_I2C_DRIVER_NAME,4,2    ; @NXP_NCI_I2C_DRIVER_NAME
l_.str.5:                               ; @.str.5
	.asciz	"Unable to register IRQ handler\n"

	.no_dead_strip	_nxp_nci_i2c_probe
.subsections_via_symbols
