	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dmar_pci_bus_notifier
_dmar_pci_bus_notifier:                 ## @dmar_pci_bus_notifier
	.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	%rdx, %rdi
	movq	%rsi, %r15
	callq	_to_pci_dev
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rax)
	jne	LBB0_9
## %bb.1:
	movq	_BUS_NOTIFY_ADD_DEVICE@GOTPCREL(%rip), %r13
	movq	_BUS_NOTIFY_REMOVED_DEVICE@GOTPCREL(%rip), %r12
	cmpq	%r15, (%r13)
	je	LBB0_3
## %bb.2:
	cmpq	%r15, (%r12)
	jne	LBB0_9
LBB0_3:
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_dmar_alloc_pci_notify_info
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	movq	_dmar_global_lock@GOTPCREL(%rip), %rdi
	callq	_down_write
	cmpq	%r15, (%r13)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_dmar_pci_bus_add_dev
	jmp	LBB0_8
LBB0_6:
	cmpq	%r15, (%r12)
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_dmar_pci_bus_del_dev
LBB0_8:
	movq	_dmar_global_lock@GOTPCREL(%rip), %rdi
	callq	_up_write
	movq	%r14, %rdi
	callq	_dmar_free_pci_notify_info
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rbx
LBB0_9:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.comm	_BUS_NOTIFY_ADD_DEVICE,8,3      ## @BUS_NOTIFY_ADD_DEVICE
	.comm	_BUS_NOTIFY_REMOVED_DEVICE,8,3  ## @BUS_NOTIFY_REMOVED_DEVICE
	.comm	_dmar_global_lock,4,2           ## @dmar_global_lock
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_dmar_pci_bus_notifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dmar_pci_bus_notifier
_dmar_pci_bus_notifier:                 ; @dmar_pci_bus_notifier
	.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	x0, x2
	mov	x19, x1
	bl	_to_pci_dev
	ldr	x8, [x0]
	cbnz	x8, LBB0_5
; %bb.1:
Lloh0:
	adrp	x22, _BUS_NOTIFY_ADD_DEVICE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BUS_NOTIFY_ADD_DEVICE@GOTPAGEOFF]
	ldr	x8, [x22]
Lloh2:
	adrp	x21, _BUS_NOTIFY_REMOVED_DEVICE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _BUS_NOTIFY_REMOVED_DEVICE@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x8, x19
	ccmp	x9, x19, #4, ne
	b.ne	LBB0_5
; %bb.2:
	mov	x1, x19
	bl	_dmar_alloc_pci_notify_info
	cbz	x0, LBB0_5
; %bb.3:
	mov	x20, x0
Lloh4:
	adrp	x0, _dmar_global_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _dmar_global_lock@GOTPAGEOFF]
	bl	_down_write
	ldr	x8, [x22]
	cmp	x8, x19
	b.ne	LBB0_7
; %bb.4:
	mov	x0, x20
	bl	_dmar_pci_bus_add_dev
	b	LBB0_9
LBB0_5:
Lloh6:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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_7:
	ldr	x8, [x21]
	cmp	x8, x19
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_dmar_pci_bus_del_dev
LBB0_9:
Lloh8:
	adrp	x0, _dmar_global_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _dmar_global_lock@GOTPAGEOFF]
	bl	_up_write
	mov	x0, x20
	bl	_dmar_free_pci_notify_info
Lloh10:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.comm	_BUS_NOTIFY_ADD_DEVICE,8,3      ; @BUS_NOTIFY_ADD_DEVICE
	.comm	_BUS_NOTIFY_REMOVED_DEVICE,8,3  ; @BUS_NOTIFY_REMOVED_DEVICE
	.comm	_dmar_global_lock,4,2           ; @dmar_global_lock
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_dmar_pci_bus_notifier
.subsections_via_symbols
