	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function microread_i2c_probe
_microread_i2c_probe:                   ## @microread_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_dev_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_i2c_set_clientdata
	movq	%r15, 8(%r12)
	movl	(%r15), %edi
	movq	_microread_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	_MICROREAD_I2C_DRIVER_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movq	%r12, %r9
	callq	_request_threaded_irq
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_nfc_err
	jmp	LBB0_7
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	_LLC_SHDLC_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MICROREAD_I2C_FRAME_HEADROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MICROREAD_I2C_FRAME_TAILROOM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_MICROREAD_I2C_LLC_MAX_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, (%rsp)
	movq	_i2c_phy_ops@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_microread_probe
	testl	%eax, %eax
	js	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_nfc_info
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_free_irq
LBB0_7:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"client %p\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_microread_i2c_irq_thread_fn,4,2 ## @microread_i2c_irq_thread_fn
	.comm	_IRQF_TRIGGER_RISING,4,2        ## @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ## @IRQF_ONESHOT
	.comm	_MICROREAD_I2C_DRIVER_NAME,4,2  ## @MICROREAD_I2C_DRIVER_NAME
L_.str.1:                               ## @.str.1
	.asciz	"Unable to register IRQ handler\n"

	.comm	_i2c_phy_ops,4,2                ## @i2c_phy_ops
	.comm	_LLC_SHDLC_NAME,4,2             ## @LLC_SHDLC_NAME
	.comm	_MICROREAD_I2C_FRAME_HEADROOM,4,2 ## @MICROREAD_I2C_FRAME_HEADROOM
	.comm	_MICROREAD_I2C_FRAME_TAILROOM,4,2 ## @MICROREAD_I2C_FRAME_TAILROOM
	.comm	_MICROREAD_I2C_LLC_MAX_PAYLOAD,4,2 ## @MICROREAD_I2C_LLC_MAX_PAYLOAD
L_.str.2:                               ## @.str.2
	.asciz	"Probed\n"

	.no_dead_strip	_microread_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function microread_i2c_probe
_microread_i2c_probe:                   ; @microread_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	x20, x0
	add	x19, x0, #4
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_dbg
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #16
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_i2c_set_clientdata
	str	x20, [x21, #8]
Lloh5:
	adrp	x8, _microread_i2c_irq_thread_fn@GOTPAGE
Lloh6:
	ldr	x8, [x8, _microread_i2c_irq_thread_fn@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh7:
	ldr	w2, [x8]
Lloh8:
	adrp	x8, _IRQF_TRIGGER_RISING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQF_TRIGGER_RISING@GOTPAGEOFF]
Lloh10:
	adrp	x9, _IRQF_ONESHOT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _IRQF_ONESHOT@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	ldr	w9, [x9]
	orr	w3, w9, w8
Lloh14:
	adrp	x8, _MICROREAD_I2C_DRIVER_NAME@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MICROREAD_I2C_DRIVER_NAME@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
	mov	x1, #0
	mov	x5, x21
	bl	_request_threaded_irq
	cbz	w0, LBB0_4
; %bb.2:
	mov	x22, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_nfc_err
	b	LBB0_7
LBB0_3:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_7
LBB0_4:
Lloh22:
	adrp	x8, _LLC_SHDLC_NAME@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LLC_SHDLC_NAME@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
Lloh25:
	adrp	x8, _MICROREAD_I2C_FRAME_HEADROOM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MICROREAD_I2C_FRAME_HEADROOM@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	adrp	x8, _MICROREAD_I2C_FRAME_TAILROOM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MICROREAD_I2C_FRAME_TAILROOM@GOTPAGEOFF]
Lloh30:
	ldr	w4, [x8]
Lloh31:
	adrp	x8, _MICROREAD_I2C_LLC_MAX_PAYLOAD@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MICROREAD_I2C_LLC_MAX_PAYLOAD@GOTPAGEOFF]
Lloh33:
	ldr	w5, [x8]
Lloh34:
	adrp	x1, _i2c_phy_ops@GOTPAGE
Lloh35:
	ldr	x1, [x1, _i2c_phy_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	x6, x21
	bl	_microread_probe
	tbnz	w0, #31, LBB0_6
; %bb.5:
Lloh36:
	adrp	x1, l_.str.2@PAGE
Lloh37:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_nfc_info
	mov	w22, #0
	b	LBB0_7
LBB0_6:
	mov	x22, x0
	ldr	w0, [x20]
	mov	x1, x21
	bl	_free_irq
LBB0_7:
	mov	x0, x22
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh12
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"client %p\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_microread_i2c_irq_thread_fn,4,2 ; @microread_i2c_irq_thread_fn
	.comm	_IRQF_TRIGGER_RISING,4,2        ; @IRQF_TRIGGER_RISING
	.comm	_IRQF_ONESHOT,4,2               ; @IRQF_ONESHOT
	.comm	_MICROREAD_I2C_DRIVER_NAME,4,2  ; @MICROREAD_I2C_DRIVER_NAME
l_.str.1:                               ; @.str.1
	.asciz	"Unable to register IRQ handler\n"

	.comm	_i2c_phy_ops,4,2                ; @i2c_phy_ops
	.comm	_LLC_SHDLC_NAME,4,2             ; @LLC_SHDLC_NAME
	.comm	_MICROREAD_I2C_FRAME_HEADROOM,4,2 ; @MICROREAD_I2C_FRAME_HEADROOM
	.comm	_MICROREAD_I2C_FRAME_TAILROOM,4,2 ; @MICROREAD_I2C_FRAME_TAILROOM
	.comm	_MICROREAD_I2C_LLC_MAX_PAYLOAD,4,2 ; @MICROREAD_I2C_LLC_MAX_PAYLOAD
l_.str.2:                               ; @.str.2
	.asciz	"Probed\n"

	.no_dead_strip	_microread_i2c_probe
.subsections_via_symbols
