	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iommu_bus_notifier
_iommu_bus_notifier:                    ## @iommu_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	_BUS_NOTIFY_ADD_DEVICE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_iommu_probe_device
	testl	%eax, %eax
	je	LBB0_2
## %bb.5:
	movq	_NOTIFY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_3:
	movq	%rsi, %rbx
	movq	_BUS_NOTIFY_REMOVED_DEVICE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_iommu_release_device
LBB0_2:
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_11
LBB0_6:
	movq	%r15, %rdi
	callq	_iommu_group_get
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movq	%rax, %r12
	leaq	-128(%rbx), %rax
	cmpq	$3, %rax
	ja	LBB0_10
## %bb.8:
	leaq	l_switch.table.iommu_bus_notifier(%rip), %rax
	movq	-1024(%rax,%rbx,8), %rax
	movq	(%rax), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_blocking_notifier_call_chain
LBB0_10:
	movq	%r12, %rdi
	callq	_iommu_group_put
LBB0_11:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUS_NOTIFY_ADD_DEVICE,8,3      ## @BUS_NOTIFY_ADD_DEVICE
	.comm	_NOTIFY_DONE,4,2                ## @NOTIFY_DONE
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.comm	_BUS_NOTIFY_REMOVED_DEVICE,8,3  ## @BUS_NOTIFY_REMOVED_DEVICE
	.comm	_IOMMU_GROUP_NOTIFY_BIND_DRIVER,8,3 ## @IOMMU_GROUP_NOTIFY_BIND_DRIVER
	.comm	_IOMMU_GROUP_NOTIFY_BOUND_DRIVER,8,3 ## @IOMMU_GROUP_NOTIFY_BOUND_DRIVER
	.comm	_IOMMU_GROUP_NOTIFY_UNBIND_DRIVER,8,3 ## @IOMMU_GROUP_NOTIFY_UNBIND_DRIVER
	.comm	_IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER,8,3 ## @IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER
	.no_dead_strip	_iommu_bus_notifier
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.iommu_bus_notifier
l_switch.table.iommu_bus_notifier:
	.quad	_IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER
	.quad	_IOMMU_GROUP_NOTIFY_UNBIND_DRIVER
	.quad	_IOMMU_GROUP_NOTIFY_BOUND_DRIVER
	.quad	_IOMMU_GROUP_NOTIFY_BIND_DRIVER

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iommu_bus_notifier
_iommu_bus_notifier:                    ; @iommu_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	x19, x2
Lloh0:
	adrp	x8, _BUS_NOTIFY_ADD_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUS_NOTIFY_ADD_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_iommu_probe_device
Lloh3:
	adrp	x8, _NOTIFY_DONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NOTIFY_DONE@GOTPAGEOFF]
Lloh5:
	adrp	x9, _NOTIFY_OK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NOTIFY_OK@GOTPAGEOFF]
	cmp	w0, #0
	csel	x8, x9, x8, eq
	ldr	w0, [x8]
	b	LBB0_9
LBB0_2:
	mov	x21, x1
Lloh7:
	adrp	x8, _BUS_NOTIFY_REMOVED_DEVICE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _BUS_NOTIFY_REMOVED_DEVICE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_iommu_release_device
Lloh10:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	b	LBB0_9
LBB0_4:
	mov	x0, x19
	bl	_iommu_group_get
	cbz	x0, LBB0_9
; %bb.5:
	mov	x20, x0
	sub	x8, x21, #128
	cmp	x8, #3
	b.hi	LBB0_8
; %bb.6:
Lloh13:
	adrp	x9, l_switch.table.iommu_bus_notifier@PAGE
Lloh14:
	add	x9, x9, l_switch.table.iommu_bus_notifier@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	ldr	x1, [x8]
	cbz	x1, LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x2, x19
	bl	_blocking_notifier_call_chain
LBB0_8:
	mov	x0, x20
	bl	_iommu_group_put
	mov	w0, #0
LBB0_9:
	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	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_BUS_NOTIFY_ADD_DEVICE,8,3      ; @BUS_NOTIFY_ADD_DEVICE
	.comm	_NOTIFY_DONE,4,2                ; @NOTIFY_DONE
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.comm	_BUS_NOTIFY_REMOVED_DEVICE,8,3  ; @BUS_NOTIFY_REMOVED_DEVICE
	.comm	_IOMMU_GROUP_NOTIFY_BIND_DRIVER,8,3 ; @IOMMU_GROUP_NOTIFY_BIND_DRIVER
	.comm	_IOMMU_GROUP_NOTIFY_BOUND_DRIVER,8,3 ; @IOMMU_GROUP_NOTIFY_BOUND_DRIVER
	.comm	_IOMMU_GROUP_NOTIFY_UNBIND_DRIVER,8,3 ; @IOMMU_GROUP_NOTIFY_UNBIND_DRIVER
	.comm	_IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER,8,3 ; @IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER
	.no_dead_strip	_iommu_bus_notifier
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.iommu_bus_notifier
l_switch.table.iommu_bus_notifier:
	.quad	_IOMMU_GROUP_NOTIFY_UNBOUND_DRIVER
	.quad	_IOMMU_GROUP_NOTIFY_UNBIND_DRIVER
	.quad	_IOMMU_GROUP_NOTIFY_BOUND_DRIVER
	.quad	_IOMMU_GROUP_NOTIFY_BIND_DRIVER

.subsections_via_symbols
