	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmif_set_mode
_atmif_set_mode:                        ## @atmif_set_mode
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leaq	-72(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-60(%rbp), %edi
	movq	8(%r12), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movq	_mib_netsock@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_SIOCGIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	leaq	-56(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	8(%r12), %rax
	movl	(%rax), %esi
	callq	_strcpy
	movl	-68(%rbp), %eax
	movq	_ATMIF_SUNI_MODE_SDH@GOTPCREL(%rip), %rcx
	movq	_IFM_ATM_SDH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	notl	%esi
	andl	%eax, %esi
	orl	%eax, %edx
	cmpl	%r14d, (%rcx)
	cmovnel	%esi, %edx
	movl	%edx, -56(%rbp)
	movl	(%r13), %edi
	movq	_SIOCSIFMEDIA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_ioctl
	testq	%rax, %rax
	js	LBB0_4
## %bb.5:
	movl	%r14d, (%r12)
	movq	_SNMP_ERR_NOERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	_syslog
	movq	_SNMP_ERR_GENERR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mib_netsock,4,2                ## @mib_netsock
	.comm	_SIOCGIFMEDIA,4,2               ## @SIOCGIFMEDIA
	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SIOCGIFMEDIA: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ## @SNMP_ERR_GENERR
	.comm	_ATMIF_SUNI_MODE_SDH,4,2        ## @ATMIF_SUNI_MODE_SDH
	.comm	_IFM_ATM_SDH,4,2                ## @IFM_ATM_SDH
	.comm	_SIOCSIFMEDIA,4,2               ## @SIOCSIFMEDIA
L_.str.1:                               ## @.str.1
	.asciz	"SIOCSIFMEDIA: %m"

	.comm	_SNMP_ERR_NOERROR,4,2           ## @SNMP_ERR_NOERROR
	.no_dead_strip	_atmif_set_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmif_set_mode
_atmif_set_mode:                        ; @atmif_set_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #28]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	bl	_strcpy
Lloh0:
	adrp	x21, _mib_netsock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _mib_netsock@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh2:
	adrp	x8, _SIOCGIFMEDIA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIOCGIFMEDIA@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #16
	bl	_ioctl
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	ldr	w0, [sp, #8]
	ldr	x8, [x20, #8]
	ldr	w1, [x8]
	bl	_strcpy
	ldr	w8, [sp, #20]
Lloh5:
	adrp	x9, _ATMIF_SUNI_MODE_SDH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ATMIF_SUNI_MODE_SDH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _IFM_ATM_SDH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _IFM_ATM_SDH@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	bic	w11, w8, w10
	orr	w8, w10, w8
	cmp	w9, w19
	csel	w8, w8, w11, eq
	str	w8, [sp]
	ldr	w0, [x21]
Lloh11:
	adrp	x8, _SIOCSIFMEDIA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SIOCSIFMEDIA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x2, sp
	bl	_ioctl
	tbnz	x0, #63, LBB0_4
; %bb.2:
	str	w19, [x20]
Lloh14:
	adrp	x8, _SNMP_ERR_NOERROR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SNMP_ERR_NOERROR@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh16:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh21:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	bl	_syslog
Lloh26:
	adrp	x8, _SNMP_ERR_GENERR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _SNMP_ERR_GENERR@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_mib_netsock,4,2                ; @mib_netsock
	.comm	_SIOCGIFMEDIA,4,2               ; @SIOCGIFMEDIA
	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SIOCGIFMEDIA: %m"

	.comm	_SNMP_ERR_GENERR,4,2            ; @SNMP_ERR_GENERR
	.comm	_ATMIF_SUNI_MODE_SDH,4,2        ; @ATMIF_SUNI_MODE_SDH
	.comm	_IFM_ATM_SDH,4,2                ; @IFM_ATM_SDH
	.comm	_SIOCSIFMEDIA,4,2               ; @SIOCSIFMEDIA
l_.str.1:                               ; @.str.1
	.asciz	"SIOCSIFMEDIA: %m"

	.comm	_SNMP_ERR_NOERROR,4,2           ; @SNMP_ERR_NOERROR
	.no_dead_strip	_atmif_set_mode
.subsections_via_symbols
