	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfcsim_device_new
_nfcsim_device_new:                     ## @nfcsim_device_new
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	leaq	28(%rax), %rdi
	movq	_nfcsim_send_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movq	%rbx, %rdi
	addq	$24, %rdi
	movq	_nfcsim_recv_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	movq	_NFC_PROTO_NFC_DEP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NFCSIM_CAPABILITIES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_nfcsim_digital_ops@GOTPCREL(%rip), %rdi
	xorl	%r12d, %r12d
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_nfc_digital_allocate_device
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_nfc_digital_set_drvdata
	movq	%r15, 16(%rbx)
	movq	%r14, 8(%rbx)
	movl	(%rbx), %edi
	callq	_nfc_digital_register_device
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
	movl	(%rbx), %edi
	callq	_nfc_digital_free_device
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %edi
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	jmp	LBB0_2
LBB0_4:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	movl	%r12d, %edi
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_7:
	movq	%rbx, %rdi
	callq	_nfcsim_debugfs_init_dev
	movq	%rbx, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_nfcsim_send_wq,4,2             ## @nfcsim_send_wq
	.comm	_nfcsim_recv_wq,4,2             ## @nfcsim_recv_wq
	.comm	_nfcsim_digital_ops,4,2         ## @nfcsim_digital_ops
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ## @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFCSIM_CAPABILITIES,4,2        ## @NFCSIM_CAPABILITIES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not register digital device (%d)\n"

	.no_dead_strip	_nfcsim_device_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfcsim_device_new
_nfcsim_device_new:                     ; @nfcsim_device_new
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	add	x0, x0, #28
Lloh3:
	adrp	x8, _nfcsim_send_wq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nfcsim_send_wq@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	add	x0, x19, #24
Lloh6:
	adrp	x8, _nfcsim_recv_wq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nfcsim_recv_wq@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh9:
	adrp	x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NFC_PROTO_NFC_DEP_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _NFCSIM_CAPABILITIES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NFCSIM_CAPABILITIES@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x0, _nfcsim_digital_ops@GOTPAGE
Lloh16:
	ldr	x0, [x0, _nfcsim_digital_ops@GOTPAGEOFF]
	mov	w3, #0
	mov	w4, #0
	bl	_nfc_digital_allocate_device
	str	w0, [x19]
	cbz	w0, LBB0_4
; %bb.2:
	mov	x1, x19
	bl	_nfc_digital_set_drvdata
	stp	x20, x21, [x19, #8]
	ldr	w0, [x19]
	bl	_nfc_digital_register_device
	cbz	w0, LBB0_7
; %bb.3:
	mov	x20, x0
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_err
	ldr	w0, [x19]
	bl	_nfc_digital_free_device
	mov	x0, x19
	bl	_kfree
	mov	x0, x20
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_kfree
LBB0_5:
Lloh19:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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	_ERR_PTR
LBB0_7:
	mov	x0, x19
	bl	_nfcsim_debugfs_init_dev
	mov	x0, x19
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_nfcsim_send_wq,4,2             ; @nfcsim_send_wq
	.comm	_nfcsim_recv_wq,4,2             ; @nfcsim_recv_wq
	.comm	_nfcsim_digital_ops,4,2         ; @nfcsim_digital_ops
	.comm	_NFC_PROTO_NFC_DEP_MASK,4,2     ; @NFC_PROTO_NFC_DEP_MASK
	.comm	_NFCSIM_CAPABILITIES,4,2        ; @NFCSIM_CAPABILITIES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not register digital device (%d)\n"

	.no_dead_strip	_nfcsim_device_new
.subsections_via_symbols
