	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_device_id              ## -- Begin function parport_device_id
	.p2align	4, 0x90
_parport_device_id:                     ## @parport_device_id
	.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, %r12
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_parport_open
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_parport_claim_or_block
	movl	4(%rbx), %edi
	movq	_IEEE1284_MODE_COMPAT@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_parport_negotiate
	movl	4(%rbx), %edi
	movq	_IEEE1284_MODE_NIBBLE@GOTPCREL(%rip), %rax
	movq	_IEEE1284_DEVICEID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_parport_negotiate
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	movq	%r12, %rdx
	callq	_parport_read_device_id
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	movl	(%r13), %esi
	callq	_parport_negotiate
	cmpl	$3, %r15d
	jl	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	addq	$2, %r14
	movq	%r14, %rdx
	callq	_parse_data
LBB0_5:
	movq	%rbx, %rdi
	callq	_parport_release
	movq	%rbx, %rdi
	callq	_parport_close
	jmp	LBB0_6
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_6:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Device ID probe"

	.comm	_IEEE1284_MODE_COMPAT,4,2       ## @IEEE1284_MODE_COMPAT
	.comm	_IEEE1284_MODE_NIBBLE,4,2       ## @IEEE1284_MODE_NIBBLE
	.comm	_IEEE1284_DEVICEID,4,2          ## @IEEE1284_DEVICEID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_parport_device_id              ; -- Begin function parport_device_id
	.p2align	2
_parport_device_id:                     ; @parport_device_id
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_parport_open
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_parport_claim_or_block
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x23, _IEEE1284_MODE_COMPAT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IEEE1284_MODE_COMPAT@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_parport_negotiate
Lloh4:
	adrp	x8, _IEEE1284_MODE_NIBBLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IEEE1284_MODE_NIBBLE@GOTPAGEOFF]
	ldr	w0, [x19, #4]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _IEEE1284_DEVICEID@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE1284_DEVICEID@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_parport_negotiate
	mov	x22, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #4]
	mov	x1, x20
	mov	x2, x21
	bl	_parport_read_device_id
	mov	x22, x0
	ldr	w0, [x19, #4]
	ldr	w1, [x23]
	bl	_parport_negotiate
	cmp	w22, #3
	b.lt	LBB0_4
; %bb.3:
	ldp	w1, w0, [x19]
	add	x2, x20, #2
	bl	_parse_data
LBB0_4:
	mov	x0, x19
	bl	_parport_release
	mov	x0, x19
	bl	_parport_close
	b	LBB0_6
LBB0_5:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Device ID probe"

	.comm	_IEEE1284_MODE_COMPAT,4,2       ; @IEEE1284_MODE_COMPAT
	.comm	_IEEE1284_MODE_NIBBLE,4,2       ; @IEEE1284_MODE_NIBBLE
	.comm	_IEEE1284_DEVICEID,4,2          ; @IEEE1284_DEVICEID
.subsections_via_symbols
