	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parport_free_pad
_parport_free_pad:                      ## @parport_free_pad
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movb	(%rdi), %al
	movb	%al, -17(%rbp)
	movl	4(%rdi), %edi
	movq	_PPWDATA@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-17(%rbp), %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movl	12(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	callq	_RARCH_ERR
LBB0_2:
	movb	8(%rbx), %al
	movb	%al, -17(%rbp)
	movl	4(%rbx), %edi
	movl	(%r14), %esi
	leaq	-17(%rbp), %rdx
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	movl	12(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_RARCH_ERR
LBB0_4:
	movl	4(%rbx), %edi
	movq	_PPRELEASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	callq	_ioctl
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	movl	12(%rbx), %esi
	leaq	L_.str.2(%rip), %rdi
	callq	_RARCH_ERR
LBB0_6:
	movl	4(%rbx), %edi
	callq	_close
	movl	$-1, 4(%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPWDATA,4,2                    ## @PPWDATA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[Joypad]: Failed to restore original data register on %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"[Joypad]: Failed to restore original control register on %s\n"

	.comm	_PPRELEASE,4,2                  ## @PPRELEASE
L_.str.2:                               ## @.str.2
	.asciz	"[Joypad]: Failed to release parallel port %s\n"

	.no_dead_strip	_parport_free_pad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parport_free_pad
_parport_free_pad:                      ; @parport_free_pad
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldrb	w8, [x0]
	strb	w8, [sp, #15]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x20, _PPWDATA@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PPWDATA@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x21, sp, #15
	str	x21, [sp]
	bl	_ioctl
	tbz	x0, #63, LBB0_2
; %bb.1:
	ldr	w1, [x19, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_ERR
LBB0_2:
	ldrb	w8, [x19, #8]
	strb	w8, [sp, #15]
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	str	x21, [sp]
	bl	_ioctl
	tbz	x0, #63, LBB0_4
; %bb.3:
	ldr	w1, [x19, #12]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_ERR
LBB0_4:
	ldr	w0, [x19, #4]
Lloh6:
	adrp	x8, _PPRELEASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PPRELEASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_ioctl
	tbz	x0, #63, LBB0_6
; %bb.5:
	ldr	w1, [x19, #12]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_ERR
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_close
	mov	w8, #-1
	str	w8, [x19, #4]
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_PPWDATA,4,2                    ; @PPWDATA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[Joypad]: Failed to restore original data register on %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"[Joypad]: Failed to restore original control register on %s\n"

	.comm	_PPRELEASE,4,2                  ; @PPRELEASE
l_.str.2:                               ; @.str.2
	.asciz	"[Joypad]: Failed to release parallel port %s\n"

	.no_dead_strip	_parport_free_pad
.subsections_via_symbols
