	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnpbios_interface_attach_device ## -- Begin function pnpbios_interface_attach_device
	.p2align	4, 0x90
_pnpbios_interface_attach_device:       ## @pnpbios_interface_attach_device
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-11(%rbp), %rdi
	callq	_sprintf
	movq	_proc_pnp@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movq	_pnpbios_dont_use_current_config@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movslq	(%rbx), %r8
	movq	_pnpbios_proc_fops@GOTPCREL(%rip), %rcx
	leaq	-11(%rbp), %rdi
	movl	$420, %esi                      ## imm = 0x1A4
	callq	_proc_create_data
LBB0_3:
	movq	_proc_pnp_boot@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	movslq	(%rbx), %r8
	addq	$256, %r8                       ## imm = 0x100
	movq	_pnpbios_proc_fops@GOTPCREL(%rip), %rcx
	leaq	-11(%rbp), %rdi
	movl	$420, %esi                      ## imm = 0x1A4
	callq	_proc_create_data
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_6
LBB0_5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%02x"

	.comm	_proc_pnp,4,2                   ## @proc_pnp
	.comm	_EIO,4,2                        ## @EIO
	.comm	_pnpbios_dont_use_current_config,4,2 ## @pnpbios_dont_use_current_config
	.comm	_pnpbios_proc_fops,4,2          ## @pnpbios_proc_fops
	.comm	_proc_pnp_boot,4,2              ## @proc_pnp_boot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pnpbios_interface_attach_device ; -- Begin function pnpbios_interface_attach_device
	.p2align	2
_pnpbios_interface_attach_device:       ; @pnpbios_interface_attach_device
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w2, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #13
	bl	_sprintf
Lloh2:
	adrp	x8, _proc_pnp@GOTPAGE
Lloh3:
	ldr	x8, [x8, _proc_pnp@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	cbz	w2, LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _pnpbios_dont_use_current_config@GOTPAGE
Lloh6:
	ldr	x8, [x8, _pnpbios_dont_use_current_config@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbnz	w8, LBB0_3
; %bb.2:
	ldrsw	x4, [x19]
Lloh8:
	adrp	x3, _pnpbios_proc_fops@GOTPAGE
Lloh9:
	ldr	x3, [x3, _pnpbios_proc_fops@GOTPAGEOFF]
	add	x0, sp, #13
	mov	w1, #420
	bl	_proc_create_data
LBB0_3:
Lloh10:
	adrp	x8, _proc_pnp_boot@GOTPAGE
Lloh11:
	ldr	x8, [x8, _proc_pnp_boot@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	cbz	w2, LBB0_6
; %bb.4:
	ldrsw	x8, [x19]
	add	x4, x8, #256
Lloh13:
	adrp	x3, _pnpbios_proc_fops@GOTPAGE
Lloh14:
	ldr	x3, [x3, _pnpbios_proc_fops@GOTPAGEOFF]
	add	x0, sp, #13
	mov	w1, #420
	bl	_proc_create_data
	cbz	x0, LBB0_6
; %bb.5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%02x"

	.comm	_proc_pnp,4,2                   ; @proc_pnp
	.comm	_EIO,4,2                        ; @EIO
	.comm	_pnpbios_dont_use_current_config,4,2 ; @pnpbios_dont_use_current_config
	.comm	_pnpbios_proc_fops,4,2          ; @pnpbios_proc_fops
	.comm	_proc_pnp_boot,4,2              ; @proc_pnp_boot
.subsections_via_symbols
