	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gigaset_set_modem_ctrl
_gigaset_set_modem_ctrl:                ## @gigaset_set_modem_ctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	(%rdi), %rax
	movq	(%rax), %r14
	xorl	%edx, %esi
	movl	%esi, %edi
	callq	_tiocm_to_gigaset
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_tiocm_to_gigaset
	movl	%eax, %r15d
	movq	_DEBUG_USBREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_gig_dbg
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movzbl	%r15b, %ecx
	shll	$8, %ebx
	movzwl	%bx, %r8d
	orl	%ecx, %r8d
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	%eax, %esi
	movl	$7, %edx
	movl	$65, %ecx
	xorl	%r9d, %r9d
	pushq	$2000                           ## imm = 0x7D0
	pushq	$0
	pushq	$0
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_USBREQ,4,2               ## @DEBUG_USBREQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set flags 0x%02x with mask 0x%02x"

	.no_dead_strip	_gigaset_set_modem_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gigaset_set_modem_ctrl
_gigaset_set_modem_ctrl:                ; @gigaset_set_modem_ctrl
	.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, x2
	ldr	x8, [x0]
	ldr	x20, [x8]
	eor	w0, w2, w1
	bl	_tiocm_to_gigaset
	mov	x21, x0
	mov	x0, x19
	bl	_tiocm_to_gigaset
	mov	x19, x0
Lloh0:
	adrp	x8, _DEBUG_USBREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_USBREQ@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x21
	bl	_gig_dbg
	mov	x0, x20
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
	and	w4, w19, #0xff
	bfi	w4, w21, #8, #8
	mov	w8, #2000
	str	w8, [sp]
	mov	x0, x20
	mov	w2, #7
	mov	w3, #65
	mov	w5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_usb_control_msg
	cmp	w0, #0
	csel	w0, w0, wzr, lt
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_USBREQ,4,2               ; @DEBUG_USBREQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set flags 0x%02x with mask 0x%02x"

	.no_dead_strip	_gigaset_set_modem_ctrl
.subsections_via_symbols
