	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_select_altsetting      ## -- Begin function cdc_ncm_select_altsetting
	.p2align	4, 0x90
_cdc_ncm_select_altsetting:             ## @cdc_ncm_select_altsetting
	.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
	movq	_prefer_mbim@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$2, (%rsi)
	jne	LBB0_6
## %bb.2:
	movq	%rdi, %r14
	movq	_CDC_NCM_COMM_ALTSETTING_MBIM@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_usb_altnum_to_altsetting
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, %rdi
	callq	_cdc_ncm_comm_intf_is_mbim
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movl	(%r14), %edi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	callq	_usb_set_interface
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movq	_CDC_NCM_DATA_ALTSETTING_NCM@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_CDC_NCM_DATA_ALTSETTING_MBIM@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_prefer_mbim,8,3                ## @prefer_mbim
	.comm	_CDC_NCM_COMM_ALTSETTING_MBIM,4,2 ## @CDC_NCM_COMM_ALTSETTING_MBIM
	.comm	_CDC_NCM_DATA_ALTSETTING_MBIM,4,2 ## @CDC_NCM_DATA_ALTSETTING_MBIM
	.comm	_CDC_NCM_DATA_ALTSETTING_NCM,4,2 ## @CDC_NCM_DATA_ALTSETTING_NCM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cdc_ncm_select_altsetting      ; -- Begin function cdc_ncm_select_altsetting
	.p2align	2
_cdc_ncm_select_altsetting:             ; @cdc_ncm_select_altsetting
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _prefer_mbim@GOTPAGE
Lloh1:
	ldr	x8, [x8, _prefer_mbim@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x1
	ldr	w8, [x1]
	cmp	w8, #2
	b.ne	LBB0_5
; %bb.2:
	mov	x20, x0
Lloh3:
	adrp	x21, _CDC_NCM_COMM_ALTSETTING_MBIM@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CDC_NCM_COMM_ALTSETTING_MBIM@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_usb_altnum_to_altsetting
	cbz	x0, LBB0_5
; %bb.3:
	bl	_cdc_ncm_comm_intf_is_mbim
	cbz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x20]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	ldr	w2, [x21]
	bl	_usb_set_interface
	cbz	w0, LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _CDC_NCM_DATA_ALTSETTING_NCM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CDC_NCM_DATA_ALTSETTING_NCM@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh7:
	adrp	x8, _CDC_NCM_DATA_ALTSETTING_MBIM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CDC_NCM_DATA_ALTSETTING_MBIM@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_prefer_mbim,8,3                ; @prefer_mbim
	.comm	_CDC_NCM_COMM_ALTSETTING_MBIM,4,2 ; @CDC_NCM_COMM_ALTSETTING_MBIM
	.comm	_CDC_NCM_DATA_ALTSETTING_MBIM,4,2 ; @CDC_NCM_DATA_ALTSETTING_MBIM
	.comm	_CDC_NCM_DATA_ALTSETTING_NCM,4,2 ; @CDC_NCM_DATA_ALTSETTING_NCM
.subsections_via_symbols
