	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda9887_set_insmod
_tda9887_set_insmod:                    ## @tda9887_set_insmod
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	_UNSET@GOTPCREL(%rip), %rsi
	movq	_port1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_4
## %bb.1:
	movq	_cOutputPort1Inactive@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	orb	%cl, 1(%rax)
	jmp	LBB0_4
LBB0_3:
	notb	%cl
	andb	%cl, 1(%rax)
LBB0_4:
	movq	_port2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_8
## %bb.5:
	movq	_cOutputPort2Inactive@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.6:
	orb	%cl, 1(%rax)
	jmp	LBB0_8
LBB0_7:
	notb	%cl
	andb	%cl, 1(%rax)
LBB0_8:
	movq	_qss@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmpq	%rdx, (%rsi)
	je	LBB0_12
## %bb.9:
	movq	_cQSS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.10:
	orb	%cl, 1(%rax)
	jmp	LBB0_12
LBB0_11:
	notb	%cl
	andb	%cl, 1(%rax)
LBB0_12:
	movq	_adjust@GOTPCREL(%rip), %rcx
	cmpl	$31, (%rcx)
	jg	LBB0_14
## %bb.13:
	movq	_cTopMask@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	notb	%dl
	andb	2(%rax), %dl
	movb	%dl, 2(%rax)
	orb	(%rcx), %dl
	movb	%dl, 2(%rax)
LBB0_14:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_UNSET,8,3                      ## @UNSET
	.comm	_port1,8,3                      ## @port1
	.comm	_cOutputPort1Inactive,1,0       ## @cOutputPort1Inactive
	.comm	_port2,8,3                      ## @port2
	.comm	_cOutputPort2Inactive,1,0       ## @cOutputPort2Inactive
	.comm	_qss,8,3                        ## @qss
	.comm	_cQSS,1,0                       ## @cQSS
	.comm	_adjust,4,2                     ## @adjust
	.comm	_cTopMask,1,0                   ## @cTopMask
	.no_dead_strip	_tda9887_set_insmod
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda9887_set_insmod
_tda9887_set_insmod:                    ; @tda9887_set_insmod
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _UNSET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _UNSET@GOTPAGEOFF]
	ldr	x8, [x8]
	ldr	x11, [x9]
Lloh2:
	adrp	x10, _port1@GOTPAGE
Lloh3:
	ldr	x10, [x10, _port1@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x11, x10
	b.eq	LBB0_5
; %bb.1:
Lloh5:
	adrp	x11, _cOutputPort1Inactive@GOTPAGE
Lloh6:
	ldr	x11, [x11, _cOutputPort1Inactive@GOTPAGEOFF]
	ldrb	w11, [x11]
	cbz	x10, LBB0_3
; %bb.2:
	ldrb	w10, [x8, #1]
	orr	w10, w10, w11
	b	LBB0_4
LBB0_3:
	ldrb	w10, [x8, #1]
	bic	w10, w10, w11
LBB0_4:
	strb	w10, [x8, #1]
LBB0_5:
	ldr	x11, [x9]
Lloh7:
	adrp	x10, _port2@GOTPAGE
Lloh8:
	ldr	x10, [x10, _port2@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x11, x10
	b.eq	LBB0_10
; %bb.6:
Lloh10:
	adrp	x11, _cOutputPort2Inactive@GOTPAGE
Lloh11:
	ldr	x11, [x11, _cOutputPort2Inactive@GOTPAGEOFF]
	ldrb	w11, [x11]
	cbz	x10, LBB0_8
; %bb.7:
	ldrb	w10, [x8, #1]
	orr	w10, w10, w11
	b	LBB0_9
LBB0_8:
	ldrb	w10, [x8, #1]
	bic	w10, w10, w11
LBB0_9:
	strb	w10, [x8, #1]
LBB0_10:
	ldr	x10, [x9]
Lloh12:
	adrp	x9, _qss@GOTPAGE
Lloh13:
	ldr	x9, [x9, _qss@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_15
; %bb.11:
Lloh15:
	adrp	x10, _cQSS@GOTPAGE
Lloh16:
	ldr	x10, [x10, _cQSS@GOTPAGEOFF]
	ldrb	w10, [x10]
	cbz	x9, LBB0_13
; %bb.12:
	ldrb	w9, [x8, #1]
	orr	w9, w9, w10
	b	LBB0_14
LBB0_13:
	ldrb	w9, [x8, #1]
	bic	w9, w9, w10
LBB0_14:
	strb	w9, [x8, #1]
LBB0_15:
Lloh17:
	adrp	x9, _adjust@GOTPAGE
Lloh18:
	ldr	x9, [x9, _adjust@GOTPAGEOFF]
	ldr	w10, [x9]
	cmp	w10, #31
	b.gt	LBB0_17
; %bb.16:
Lloh19:
	adrp	x10, _cTopMask@GOTPAGE
Lloh20:
	ldr	x10, [x10, _cTopMask@GOTPAGEOFF]
	ldrb	w10, [x10]
	ldrb	w11, [x8, #2]
	bic	w10, w11, w10
	ldrb	w9, [x9]
	orr	w9, w10, w9
	strb	w9, [x8, #2]
LBB0_17:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_UNSET,8,3                      ; @UNSET
	.comm	_port1,8,3                      ; @port1
	.comm	_cOutputPort1Inactive,1,0       ; @cOutputPort1Inactive
	.comm	_port2,8,3                      ; @port2
	.comm	_cOutputPort2Inactive,1,0       ; @cOutputPort2Inactive
	.comm	_qss,8,3                        ; @qss
	.comm	_cQSS,1,0                       ; @cQSS
	.comm	_adjust,4,2                     ; @adjust
	.comm	_cTopMask,1,0                   ; @cTopMask
	.no_dead_strip	_tda9887_set_insmod
.subsections_via_symbols
