	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function saa7134_hw_enable2
_saa7134_hw_enable2:                    ## @saa7134_hw_enable2
	.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	_SAA7134_IRQ2_INTE_DEC3@GOTPCREL(%rip), %rax
	movq	_SAA7134_IRQ2_INTE_DEC2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_SAA7134_IRQ2_INTE_DEC1@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAA7134_IRQ2_INTE_DEC0@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAA7134_IRQ2_INTE_PE@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	_SAA7134_IRQ2_INTE_AR@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	(%rdi), %rax
	movq	_SAA7134_REMOTE_GPIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	8(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.2:
	movl	(%rcx), %edx
	testl	$65536, %edx                    ## imm = 0x10000
	jne	LBB0_3
## %bb.4:
	shll	$13, %edx
	sarl	$31, %edx
	movq	_SAA7134_IRQ2_INTE_GPIO18_P@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	orl	%edx, %ebx
	testb	$4, 6(%rcx)
	je	LBB0_7
## %bb.5:
	movq	_SAA7134_IRQ2_INTE_GPIO18_N@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
LBB0_3:
	movq	_SAA7134_IRQ2_INTE_GPIO16_N@GOTPCREL(%rip), %rcx
LBB0_6:
	orl	(%rcx), %ebx
LBB0_7:
	movq	_SAA7134_REMOTE_I2C@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_request_module
LBB0_9:
	movq	_SAA7134_IRQ1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_saa_writel
	movq	_SAA7134_IRQ2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_saa_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SAA7134_IRQ2_INTE_DEC3,4,2     ## @SAA7134_IRQ2_INTE_DEC3
	.comm	_SAA7134_IRQ2_INTE_DEC2,4,2     ## @SAA7134_IRQ2_INTE_DEC2
	.comm	_SAA7134_IRQ2_INTE_DEC1,4,2     ## @SAA7134_IRQ2_INTE_DEC1
	.comm	_SAA7134_IRQ2_INTE_DEC0,4,2     ## @SAA7134_IRQ2_INTE_DEC0
	.comm	_SAA7134_IRQ2_INTE_PE,4,2       ## @SAA7134_IRQ2_INTE_PE
	.comm	_SAA7134_IRQ2_INTE_AR,4,2       ## @SAA7134_IRQ2_INTE_AR
	.comm	_SAA7134_REMOTE_GPIO,8,3        ## @SAA7134_REMOTE_GPIO
	.comm	_SAA7134_IRQ2_INTE_GPIO16_N,4,2 ## @SAA7134_IRQ2_INTE_GPIO16_N
	.comm	_SAA7134_IRQ2_INTE_GPIO18_P,4,2 ## @SAA7134_IRQ2_INTE_GPIO18_P
	.comm	_SAA7134_IRQ2_INTE_GPIO18_N,4,2 ## @SAA7134_IRQ2_INTE_GPIO18_N
	.comm	_SAA7134_REMOTE_I2C,8,3         ## @SAA7134_REMOTE_I2C
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ir-kbd-i2c"

	.comm	_SAA7134_IRQ1,4,2               ## @SAA7134_IRQ1
	.comm	_SAA7134_IRQ2,4,2               ## @SAA7134_IRQ2
	.no_dead_strip	_saa7134_hw_enable2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function saa7134_hw_enable2
_saa7134_hw_enable2:                    ; @saa7134_hw_enable2
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _SAA7134_IRQ2_INTE_DEC3@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SAA7134_IRQ2_INTE_DEC3@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SAA7134_IRQ2_INTE_DEC2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SAA7134_IRQ2_INTE_DEC2@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _SAA7134_IRQ2_INTE_DEC1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SAA7134_IRQ2_INTE_DEC1@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _SAA7134_IRQ2_INTE_DEC0@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SAA7134_IRQ2_INTE_DEC0@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _SAA7134_IRQ2_INTE_PE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SAA7134_IRQ2_INTE_PE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _SAA7134_IRQ2_INTE_AR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SAA7134_IRQ2_INTE_AR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w19, w8, w9
	ldr	x8, [x0]
Lloh18:
	adrp	x9, _SAA7134_REMOTE_GPIO@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SAA7134_REMOTE_GPIO@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_7
; %bb.2:
	ldr	w10, [x9]
	tbnz	w10, #16, LBB0_5
; %bb.3:
	lsl	w10, w10, #13
Lloh21:
	adrp	x11, _SAA7134_IRQ2_INTE_GPIO18_P@GOTPAGE
Lloh22:
	ldr	x11, [x11, _SAA7134_IRQ2_INTE_GPIO18_P@GOTPAGEOFF]
Lloh23:
	ldr	w11, [x11]
	and	w10, w11, w10, asr #31
	orr	w19, w10, w19
	ldrb	w9, [x9, #6]
	tbz	w9, #2, LBB0_7
; %bb.4:
Lloh24:
	adrp	x9, _SAA7134_IRQ2_INTE_GPIO18_N@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SAA7134_IRQ2_INTE_GPIO18_N@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh26:
	adrp	x9, _SAA7134_IRQ2_INTE_GPIO16_N@GOTPAGE
Lloh27:
	ldr	x9, [x9, _SAA7134_IRQ2_INTE_GPIO16_N@GOTPAGEOFF]
LBB0_6:
	ldr	w9, [x9]
	orr	w19, w9, w19
LBB0_7:
Lloh28:
	adrp	x9, _SAA7134_REMOTE_I2C@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SAA7134_REMOTE_I2C@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_request_module
LBB0_9:
Lloh33:
	adrp	x8, _SAA7134_IRQ1@GOTPAGE
Lloh34:
	ldr	x8, [x8, _SAA7134_IRQ1@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_saa_writel
Lloh36:
	adrp	x8, _SAA7134_IRQ2@GOTPAGE
Lloh37:
	ldr	x8, [x8, _SAA7134_IRQ2@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_saa_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_SAA7134_IRQ2_INTE_DEC3,4,2     ; @SAA7134_IRQ2_INTE_DEC3
	.comm	_SAA7134_IRQ2_INTE_DEC2,4,2     ; @SAA7134_IRQ2_INTE_DEC2
	.comm	_SAA7134_IRQ2_INTE_DEC1,4,2     ; @SAA7134_IRQ2_INTE_DEC1
	.comm	_SAA7134_IRQ2_INTE_DEC0,4,2     ; @SAA7134_IRQ2_INTE_DEC0
	.comm	_SAA7134_IRQ2_INTE_PE,4,2       ; @SAA7134_IRQ2_INTE_PE
	.comm	_SAA7134_IRQ2_INTE_AR,4,2       ; @SAA7134_IRQ2_INTE_AR
	.comm	_SAA7134_REMOTE_GPIO,8,3        ; @SAA7134_REMOTE_GPIO
	.comm	_SAA7134_IRQ2_INTE_GPIO16_N,4,2 ; @SAA7134_IRQ2_INTE_GPIO16_N
	.comm	_SAA7134_IRQ2_INTE_GPIO18_P,4,2 ; @SAA7134_IRQ2_INTE_GPIO18_P
	.comm	_SAA7134_IRQ2_INTE_GPIO18_N,4,2 ; @SAA7134_IRQ2_INTE_GPIO18_N
	.comm	_SAA7134_REMOTE_I2C,8,3         ; @SAA7134_REMOTE_I2C
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ir-kbd-i2c"

	.comm	_SAA7134_IRQ1,4,2               ; @SAA7134_IRQ1
	.comm	_SAA7134_IRQ2,4,2               ; @SAA7134_IRQ2
	.no_dead_strip	_saa7134_hw_enable2
.subsections_via_symbols
