	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_go7007_write_interrupt
_saa7134_go7007_write_interrupt:        ## @saa7134_go7007_write_interrupt
	.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
	movl	%edx, %r15d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %r13
	movl	$100, %ebx
	movq	_HPI_ADDR_INTR_STATUS@GOTPCREL(%rip), %r14
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_gpio_read
	testb	$16, -44(%rbp)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_msleep
	decl	%ebx
	jne	LBB0_1
## %bb.3:
	movl	-44(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movl	$-1, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_HPI_ADDR_INTR_WR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_gpio_write
	movq	_HPI_ADDR_INTR_WR_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_gpio_write
	xorl	%eax, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HPI_ADDR_INTR_STATUS,4,2       ## @HPI_ADDR_INTR_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"saa7134-go7007: device is hung, status reg = 0x%04x\n"

	.comm	_HPI_ADDR_INTR_WR_PARAM,4,2     ## @HPI_ADDR_INTR_WR_PARAM
	.comm	_HPI_ADDR_INTR_WR_INDEX,4,2     ## @HPI_ADDR_INTR_WR_INDEX
	.no_dead_strip	_saa7134_go7007_write_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_go7007_write_interrupt
_saa7134_go7007_write_interrupt:        ; @saa7134_go7007_write_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldr	x8, [x0]
	ldr	x20, [x8]
	mov	w22, #100
Lloh0:
	adrp	x23, _HPI_ADDR_INTR_STATUS@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HPI_ADDR_INTR_STATUS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	add	x2, sp, #12
	mov	x0, x20
	bl	_gpio_read
	ldrb	w8, [sp, #12]
	tbz	w8, #4, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_msleep
	subs	w22, w22, #1
	b.ne	LBB0_1
; %bb.3:
	ldr	w1, [sp, #12]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
Lloh4:
	adrp	x8, _HPI_ADDR_INTR_WR_PARAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HPI_ADDR_INTR_WR_PARAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_gpio_write
Lloh7:
	adrp	x8, _HPI_ADDR_INTR_WR_INDEX@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HPI_ADDR_INTR_WR_INDEX@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_gpio_write
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_HPI_ADDR_INTR_STATUS,4,2       ; @HPI_ADDR_INTR_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"saa7134-go7007: device is hung, status reg = 0x%04x\n"

	.comm	_HPI_ADDR_INTR_WR_PARAM,4,2     ; @HPI_ADDR_INTR_WR_PARAM
	.comm	_HPI_ADDR_INTR_WR_INDEX,4,2     ; @HPI_ADDR_INTR_WR_INDEX
	.no_dead_strip	_saa7134_go7007_write_interrupt
.subsections_via_symbols
