	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_id_store
_new_id_store:                          ## @new_id_store
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	callq	_to_pci_driver
	movq	%rax, %r15
	movq	(%rax), %rbx
	movq	_PCI_ANY_ID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movq	%rax, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	$0, -80(%rbp)
	movq	$0, -48(%rbp)
	subq	$8, %rsp
	leaq	-48(%rbp), %rax
	leaq	-80(%rbp), %r10
	leaq	-56(%rbp), %r11
	leaq	L_.str(%rip), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-88(%rbp), %rcx
	leaq	-72(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%r12, %rdi
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_sscanf
	addq	$32, %rsp
	cmpl	$1, %eax
	jg	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_16
LBB0_3:
	cmpl	$7, %eax
	jne	LBB0_4
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.9:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ecx, %r13d
	negl	%r13d
	movq	-48(%rbp), %rax
	addq	$24, %rbx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_10 Depth=1
	leaq	32(%rbx), %rdx
	cmpq	-24(%rbx), %rax
	movq	%rdx, %rbx
	je	LBB0_15
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, -8(%rbx)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, -16(%rbx)
	jne	LBB0_13
## %bb.14:
	testl	%ecx, %ecx
	jne	LBB0_16
	jmp	LBB0_15
LBB0_4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$40, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r12
	movq	-96(%rbp), %rax
	movq	%rax, 32(%r12)
	movq	-88(%rbp), %rax
	movq	%rax, 24(%r12)
	movq	-72(%rbp), %rax
	movq	%rax, 16(%r12)
	movq	-64(%rbp), %rax
	movq	%rax, 8(%r12)
	movq	-56(%rbp), %rax
	movq	%rax, (%r12)
	movq	(%r15), %rdi
	movq	%r12, %rsi
	callq	_pci_match_id
	movq	_EEXIST@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	xorl	%ecx, %ecx
	testq	%rax, %rax
	cmovel	%ecx, %r13d
	movq	%r12, %rdi
	callq	_kfree
	testl	%r13d, %r13d
	jne	LBB0_16
	jmp	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rax
LBB0_15:
	movq	-96(%rbp), %rsi
	movq	-88(%rbp), %rdx
	movq	-72(%rbp), %rcx
	movq	-64(%rbp), %r8
	movq	-56(%rbp), %r9
	movq	%r15, %rdi
	pushq	%rax
	pushq	-80(%rbp)
	callq	_pci_add_dynid
	addq	$16, %rsp
	testl	%eax, %eax
	cmovnel	%eax, %r14d
	movl	%r14d, %r13d
LBB0_16:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_ANY_ID,8,3                 ## @PCI_ANY_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%x %x %x %x %x %x %lx"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EEXIST,4,2                     ## @EEXIST
	.no_dead_strip	_new_id_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_id_store
_new_id_store:                          ; @new_id_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x2
	mov	x21, x1
	bl	_to_pci_driver
	mov	x20, x0
	ldr	x23, [x0]
Lloh0:
	adrp	x8, _PCI_ANY_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_ANY_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [sp, #32]
	stp	xzr, xzr, [sp, #16]
	add	x8, sp, #8
	stp	x8, xzr, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #56
	add	x3, sp, #48
	add	x4, sp, #40
	add	x5, sp, #32
	add	x6, sp, #24
	add	x7, sp, #16
	mov	x0, x21
	bl	_sscanf
	cmp	w0, #1
	b.gt	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_15
LBB0_3:
	cmp	w0, #7
	b.ne	LBB0_11
LBB0_4:
	cbz	x23, LBB0_13
; %bb.5:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	ldr	x7, [sp, #8]
	add	x9, x23, #16
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldur	x10, [x9, #-16]
	add	x9, x9, #32
	cmp	x7, x10
	b.eq	LBB0_14
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9, #8]
	cbnz	x10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x10, [x9]
	cbnz	x10, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldur	x10, [x9, #-8]
	cbnz	x10, LBB0_6
; %bb.10:
	cbnz	w8, LBB0_15
	b	LBB0_14
LBB0_11:
Lloh10:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	w0, #40
	bl	_kzalloc
	cbz	x0, LBB0_16
; %bb.12:
	mov	x22, x0
	ldr	x10, [sp, #56]
	ldp	x11, x8, [sp, #40]
	stp	x8, x10, [x0, #24]
	ldp	x9, x8, [sp, #24]
	stp	x8, x11, [x0, #8]
	str	x9, [x0]
	ldr	x0, [x20]
	mov	x1, x22
	bl	_pci_match_id
Lloh13:
	adrp	x8, _EEXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EEXIST@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	x0, #0
	csneg	w21, wzr, w8, eq
	mov	x0, x22
	bl	_kfree
	cbnz	w21, LBB0_15
	b	LBB0_4
LBB0_13:
	ldr	x7, [sp, #8]
LBB0_14:
	ldp	x2, x1, [sp, #48]
	ldp	x4, x3, [sp, #32]
	ldp	x6, x5, [sp, #16]
	mov	x0, x20
	bl	_pci_add_dynid
	cmp	w0, #0
	csel	w21, w19, w0, eq
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_ANY_ID,8,3                 ; @PCI_ANY_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%x %x %x %x %x %x %lx"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EEXIST,4,2                     ; @EEXIST
	.no_dead_strip	_new_id_store
.subsections_via_symbols
