	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_register_driver            ## -- Begin function isa_register_driver
	.p2align	4, 0x90
_isa_register_driver:                   ## @isa_register_driver
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	addq	$8, %rdi
	movq	_isa_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	movq	$0, (%rbx)
	callq	_driver_register
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.2:
	xorl	%r15d, %r15d
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_device_unregister
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	cmpl	%r15d, %r12d
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$64, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r14
	leaq	8(%rax), %r12
	movq	_isa_bus@GOTPCREL(%rip), %rax
	movq	%rax, 48(%r14)
	movq	_isa_bus_type@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movl	8(%rbx), %edx
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	callq	_dev_set_name
	movq	%rbx, 8(%r14)
	movq	_isa_dev_release@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movl	%r15d, (%r14)
	movl	$24, %edi
	callq	_DMA_BIT_MASK
	movq	%r14, %rcx
	addq	$16, %rcx
	movl	%eax, 16(%r14)
	movq	%rcx, 24(%r14)
	movq	%r12, %rdi
	callq	_device_register
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$0, (%r12)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	%rax, 56(%r14)
	movq	%r12, (%rcx)
	jmp	LBB0_9
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	testl	%r13d, %r13d
	je	LBB0_10
## %bb.14:
	negl	%r13d
	jmp	LBB0_15
LBB0_10:
	xorl	%r13d, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$0, (%rdi)
	jne	LBB0_17
## %bb.11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_17
## %bb.12:
	negl	%eax
	movl	%eax, %r13d
	jmp	LBB0_16
LBB0_5:
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_put_device
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
LBB0_16:
	callq	_isa_unregister_driver
LBB0_17:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_isa_bus_type,4,2               ## @isa_bus_type
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_isa_bus,4,2                    ## @isa_bus
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s.%u"

	.comm	_isa_dev_release,4,2            ## @isa_dev_release
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_isa_register_driver            ; -- Begin function isa_register_driver
	.p2align	2
_isa_register_driver:                   ; @isa_register_driver
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x26, _isa_bus_type@GOTPAGE
Lloh1:
	ldr	x26, [x26, _isa_bus_type@GOTPAGEOFF]
	add	x0, x0, #8
	str	x26, [x19, #16]
	str	xzr, [x19]
	bl	_driver_register
	mov	x25, x0
	cbnz	w0, LBB0_16
; %bb.1:
	cbz	w20, LBB0_10
; %bb.2:
	mov	w21, #0
Lloh2:
	adrp	x27, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x27, [x27, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str@PAGE
Lloh5:
	add	x22, x22, l_.str@PAGEOFF
Lloh6:
	adrp	x28, _isa_dev_release@GOTPAGE
Lloh7:
	ldr	x28, [x28, _isa_dev_release@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19]
	str	x8, [x24, #56]
	str	x23, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	cmp	w20, w21
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x27]
	mov	w0, #64
	bl	_kzalloc
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	add	x23, x0, #8
Lloh8:
	adrp	x8, _isa_bus@GOTPAGE
Lloh9:
	ldr	x8, [x8, _isa_bus@GOTPAGEOFF]
	stp	x26, x8, [x0, #40]
	ldr	w2, [x19, #8]
	mov	x0, x23
	mov	x1, x22
	mov	x3, x21
	bl	_dev_set_name
	str	x19, [x24, #8]
	ldr	w8, [x28]
	str	w8, [x24, #32]
	str	w21, [x24]
	mov	w0, #24
	bl	_DMA_BIT_MASK
	mov	x8, x24
	str	w0, [x8, #16]!
	str	x8, [x8, #8]
	mov	x0, x23
	bl	_device_register
	cbnz	w0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x23]
	cbnz	x8, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_device_unregister
	b	LBB0_4
LBB0_9:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cbnz	w8, LBB0_13
LBB0_10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
LBB0_11:
	mov	w25, #0
	b	LBB0_16
LBB0_12:
Lloh13:
	adrp	x8, _ENODEV@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cbz	w8, LBB0_11
LBB0_13:
	neg	w25, w8
	b	LBB0_15
LBB0_14:
	mov	x25, x0
	mov	x0, x23
	bl	_put_device
LBB0_15:
	mov	x0, x19
	bl	_isa_unregister_driver
LBB0_16:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_isa_bus_type,4,2               ; @isa_bus_type
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_isa_bus,4,2                    ; @isa_bus
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s.%u"

	.comm	_isa_dev_release,4,2            ; @isa_dev_release
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
