	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_res_get                ## -- Begin function saa7146_res_get
	.p2align	4, 0x90
_saa7146_res_get:                       ## @saa7146_res_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	(%rdi), %esi
	movl	(%rcx), %edx
	testl	%eax, %esi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
LBB0_5:
	movl	%eax, %esi
	callq	_DEB_D
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_2:
	testl	%eax, %edx
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%edx, %esi
	movl	%eax, %edx
	callq	_DEB_D
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	orl	%eax, %esi
	movl	%esi, (%rdi)
	orl	%eax, %edx
	movl	%edx, (%rcx)
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"already allocated! want: 0x%02x, cur:0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"locked! vv->resources:0x%02x, we want:0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"res: get 0x%02x, cur:0x%02x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_saa7146_res_get                ; -- Begin function saa7146_res_get
	.p2align	2
_saa7146_res_get:                       ; @saa7146_res_get
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x1
	ldr	x9, [x0, #8]
	ldr	x9, [x9]
	ldr	w10, [x0]
	ldr	w2, [x9]
	tst	w10, w1
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
LBB0_2:
	mov	x1, x8
	bl	_DEB_D
	mov	w0, #1
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
	tst	w2, w8
	b.eq	LBB0_5
; %bb.4:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x2
	mov	x2, x8
	bl	_DEB_D
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	orr	w10, w10, w8
	str	w10, [x0]
	orr	w2, w2, w8
	str	w2, [x9]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"already allocated! want: 0x%02x, cur:0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"locked! vv->resources:0x%02x, we want:0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"res: get 0x%02x, cur:0x%02x\n"

.subsections_via_symbols
